Glossary: Building APIs with Node.js
HttpError
A small class that extends `Error` with a `statusCode`. When a handler throws one, Fastify replies with that status in the standard error shape.
Glossary: Building APIs with Node.js
A small class that extends `Error` with a `statusCode`. When a handler throws one, Fastify replies with that status in the standard error shape.