mirror of
https://github.com/status-im/codimd.git
synced 2025-01-11 23:14:24 +00:00
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)
|
return response.errorInternalError(res)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
res.send({
|
res.status(401).send({
|
||||||
status: 'forbidden'
|
status: 'forbidden'
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user