Added 404 and 403 status on routes
This commit is contained in:
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user