diff options
author | Wu Cheng-Han | 2016-10-10 20:52:31 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-10-10 20:52:31 +0800 |
commit | 1d2a9826af247883ff8e67b346263e5e2cd49791 (patch) | |
tree | 6e219e3e4b4dcdf7174cf6c62f72f81eb8e67c8a /lib | |
parent | cbf078494b03bff9e528ce9e73a81ce3c184d7b5 (diff) |
Update to improve history api error and bad request handling
Diffstat (limited to 'lib')
-rwxr-xr-x | lib/response.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/response.js b/lib/response.js index 043f4f7d..fa97f157 100755 --- a/lib/response.js +++ b/lib/response.js @@ -33,6 +33,9 @@ var response = { errorNotFound: function (res) { responseError(res, "404", "Not Found", "oops."); }, + errorBadRequest: function (res) { + responseError(res, "400", "Bad Request", "something not right."); + }, errorInternalError: function (res) { responseError(res, "500", "Internal Error", "wtf."); }, |