mirror of
https://github.com/hedgedoc/hedgedoc.git
synced 2025-05-15 07:34:42 -04:00
Added 404 and 403 status on routes
This commit is contained in:
parent
5467e6da8d
commit
f5010af4f1
3 changed files with 14 additions and 2 deletions
|
@ -36,7 +36,7 @@ var opts = {
|
|||
//public
|
||||
var response = {
|
||||
errorForbidden: function (res) {
|
||||
res.status(403).send("Forbidden, oh no.");
|
||||
responseError(res, "403", "Forbidden", "oh no.");
|
||||
},
|
||||
errorNotFound: function (res) {
|
||||
responseError(res, "404", "Not Found", "oops.");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue