Skip to content

Commit 779fa59

Browse files
GHOUL NadirGhoul Nadir
authored andcommitted
Adding an error code to the {"status":"forbidden"} response
Signed-off-by: Ghoul Nadir <nadir.ghoul@outlook.com>
1 parent 65d8fd2 commit 779fa59

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/web/userRouter.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ UserRouter.get('/me', function (req, res) {
3333
return response.errorInternalError(res)
3434
})
3535
} else {
36-
res.send({
36+
res.status(401).send({
3737
status: 'forbidden'
3838
})
3939
}

0 commit comments

Comments
 (0)