aboutsummaryrefslogtreecommitdiff
path: root/src/DevHive.Web/Controllers
diff options
context:
space:
mode:
authorDanail Dimitrov <danaildimitrov321@gmail.com>2020-12-15 20:02:59 +0200
committerDanail Dimitrov <danaildimitrov321@gmail.com>2020-12-15 20:02:59 +0200
commita25be34029e27577d51c5cf1b41010f55fc70ba3 (patch)
treef7124a7b710a933d668fc476eab3f6d2ef2daf29 /src/DevHive.Web/Controllers
parentd64d699630bb68b51190df72b72ea94640668dfc (diff)
downloadDevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.tar
DevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.tar.gz
DevHive-a25be34029e27577d51c5cf1b41010f55fc70ba3.zip
Created ErrorController
Diffstat (limited to 'src/DevHive.Web/Controllers')
-rw-r--r--src/DevHive.Web/Controllers/ErrorController.cs8
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)
}
}
}