Change invalid request path to be a 404 rather than 422, implement status id in response module

This commit is contained in:
Jake
2015-07-16 17:48:48 -05:00
parent d71d99fa9a
commit b1cdf61e4b
6 changed files with 11 additions and 8 deletions

View File

@@ -52,7 +52,7 @@ module.exports = function(req, callback) {
// check for extra paths
if (req.url.path_list.length > 2) {
callback({
status: -2,
status: -3,
body: "Invalid URL Path"
});
return;

View File

@@ -11,7 +11,7 @@ module.exports = function(req, callback) {
// check for extra paths
if (req.url.path_list.length > 2) {
callback({
status: -2,
status: -3,
body: "Invalid URL Path"
});
return;

View File

@@ -62,7 +62,7 @@ module.exports = function(req, callback) {
// check for extra paths
if (req.url.path_list.length > 3) {
callback({
status: -2,
status: -3,
body: "Invalid URL Path"
});
return;

View File

@@ -59,7 +59,7 @@ module.exports = function(req, callback) {
// check for extra paths
if (req.url.path_list.length > 2) {
callback({
status: -2,
status: -3,
body: "Invalid URL Path"
});
return;