mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-13 06:34:39 -04:00
Update to improve history api error and bad request handling
This commit is contained in:
parent
cbf078494b
commit
1d2a9826af
1 changed files with 3 additions and 0 deletions
|
@ -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.");
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue