mirror of https://github.com/status-im/codimd.git
Adding an error code to the `{"status":"forbidden"}` response
Signed-off-by: Ghoul Nadir <nadir.ghoul@outlook.com>
This commit is contained in:
parent
65d8fd2613
commit
779fa59dbb
|
@ -33,7 +33,7 @@ UserRouter.get('/me', function (req, res) {
|
|||
return response.errorInternalError(res)
|
||||
})
|
||||
} else {
|
||||
res.send({
|
||||
res.status(401).send({
|
||||
status: 'forbidden'
|
||||
})
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue