Merge pull request #1211 from gndu91/develop

Adding an error code to the `{"status":"forbidden"}` response
This commit is contained in:
Raccoon 2019-06-27 17:29:17 +08:00 committed by GitHub
commit 231c7a7033
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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'
})
}