diff options
| author | Danail Dimitrov <danaildimitrov321@gmail.com> | 2020-12-15 20:02:59 +0200 |
|---|---|---|
| committer | Danail Dimitrov <danaildimitrov321@gmail.com> | 2020-12-15 20:02:59 +0200 |
| commit | a25be34029e27577d51c5cf1b41010f55fc70ba3 (patch) | |
| tree | f7124a7b710a933d668fc476eab3f6d2ef2daf29 /src/DevHive.Web/Controllers/ErrorController.cs | |
| parent | d64d699630bb68b51190df72b72ea94640668dfc (diff) | |
| download | DevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.tar DevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.tar.gz DevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.zip | |
Created ErrorController
Diffstat (limited to 'src/DevHive.Web/Controllers/ErrorController.cs')
| -rw-r--r-- | src/DevHive.Web/Controllers/ErrorController.cs | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/DevHive.Web/Controllers/ErrorController.cs b/src/DevHive.Web/Controllers/ErrorController.cs index 560b0da..e84c19a 100644 --- a/src/DevHive.Web/Controllers/ErrorController.cs +++ b/src/DevHive.Web/Controllers/ErrorController.cs @@ -10,11 +10,9 @@ namespace DevHive.Web.Controllers public class ErrorController { [HttpGet] - public HttpStatusCode HttpError(HttpRequestException exception) - { - Console.WriteLine("WE HERE, BOIIIIIII"); - - return HttpStatusCode.OK; + public HttpStatusCode Error(HttpRequestException exception) + { + return BadRequest(exception) } } } |
