diff options
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) } } } |
