We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7593a79 commit e5139bfCopy full SHA for e5139bf
README.md
@@ -110,7 +110,7 @@ In order to properly `401` errors:
110
fastify.setErrorHandler(function (err, req, reply) {
111
if (err.statusCode === 401) {
112
// this was unauthorized! Display the correct page/message.
113
- reply.send({ was: 'unauthorized' })
+ reply.code(401).send({ was: 'unauthorized' })
114
return
115
}
116
reply.send(err)
0 commit comments