summaryrefslogtreecommitdiff
path: root/lib/response.js
diff options
context:
space:
mode:
authorWu Cheng-Han2015-12-30 00:33:36 -0500
committerWu Cheng-Han2015-12-30 00:33:36 -0500
commitf5010af4f1c90ca518ba6983ba009c9c47743240 (patch)
tree547678f1294be005893111d7aafadc6a88ddcb9d /lib/response.js
parent5467e6da8debc35befd5891bbe393a22f269117d (diff)
Added 404 and 403 status on routes
Diffstat (limited to 'lib/response.js')
-rw-r--r--lib/response.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/response.js b/lib/response.js
index 375fc3f4..6a180f2b 100644
--- a/lib/response.js
+++ b/lib/response.js
@@ -36,7 +36,7 @@ var opts = {
//public
var response = {
errorForbidden: function (res) {
- res.status(403).send("Forbidden, oh no.");
+ responseError(res, "403", "Forbidden", "oh no.");
},
errorNotFound: function (res) {
responseError(res, "404", "Not Found", "oops.");