From f5010af4f1c90ca518ba6983ba009c9c47743240 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Wed, 30 Dec 2015 00:33:36 -0500 Subject: Added 404 and 403 status on routes --- lib/response.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') 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."); -- cgit v1.2.3