Adding an error code to the `{"status":"forbidden"}` response

Signed-off-by: Ghoul Nadir <nadir.ghoul@outlook.com>
This commit is contained in:
GHOUL Nadir 2019-05-04 00:03:59 +02:00 committed by Ghoul Nadir
parent 65d8fd2613
commit 779fa59dbb
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ UserRouter.get('/me', function (req, res) {
return response.errorInternalError(res)
})
} else {
res.send({
res.status(401).send({
status: 'forbidden'
})
}