mirror of
https://github.com/status-im/codimd.git
synced 2025-02-17 10:46:23 +00:00
Update to improve history api error and bad request handling
This commit is contained in:
parent
cbf078494b
commit
1d2a9826af
@ -33,6 +33,9 @@ var response = {
|
|||||||
errorNotFound: function (res) {
|
errorNotFound: function (res) {
|
||||||
responseError(res, "404", "Not Found", "oops.");
|
responseError(res, "404", "Not Found", "oops.");
|
||||||
},
|
},
|
||||||
|
errorBadRequest: function (res) {
|
||||||
|
responseError(res, "400", "Bad Request", "something not right.");
|
||||||
|
},
|
||||||
errorInternalError: function (res) {
|
errorInternalError: function (res) {
|
||||||
responseError(res, "500", "Internal Error", "wtf.");
|
responseError(res, "500", "Internal Error", "wtf.");
|
||||||
},
|
},
|
||||||
|
Loading…
x
Reference in New Issue
Block a user