Skip to content

Commit 1d2a982

Browse files
committed
Update to improve history api error and bad request handling
1 parent cbf0784 commit 1d2a982

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

lib/response.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,9 @@ var response = {
3333
errorNotFound: function (res) {
3434
responseError(res, "404", "Not Found", "oops.");
3535
},
36+
errorBadRequest: function (res) {
37+
responseError(res, "400", "Bad Request", "something not right.");
38+
},
3639
errorInternalError: function (res) {
3740
responseError(res, "500", "Internal Error", "wtf.");
3841
},

0 commit comments

Comments
 (0)