Skip to content

Commit 231c7a7

Browse files
authored
Merge pull request #1211 from gndu91/develop
Adding an error code to the `{"status":"forbidden"}` response
2 parents d4aea92 + 779fa59 commit 231c7a7

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)