MCPcopy
hub / github.com/fastify/fastify / errorHandler

Function errorHandler

test/404s.test.js:1971–1973  ·  view source on GitHub ↗
(_, request, reply)

Source from the content-addressed store, hash-verified

1969 })
1970
1971 function errorHandler (_, request, reply) {
1972 return reply.code(401).send({ error: 'Unauthorized' })
1973 }
1974 }
1975
1976 plugin[Symbol.for('skip-override')] = true

Callers

nothing calls this directly

Calls 2

sendMethod · 0.80
codeMethod · 0.80

Tested by

no test coverage detected