mirror of https://github.com/status-im/codimd.git
Merge pull request #1211 from gndu91/develop
Adding an error code to the `{"status":"forbidden"}` response
This commit is contained in:
commit
231c7a7033
|
@ -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