Added 404 and 403 status on routes

This commit is contained in:
Wu Cheng-Han 2015-12-30 00:33:36 -05:00
parent 5467e6da8d
commit f5010af4f1
3 changed files with 14 additions and 2 deletions

View file

@ -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.");