UNPKG

fastify-http-errors-enhanced

Version:

A error handling plugin for Fastify that uses enhanced HTTP errors.

5 lines (4 loc) 401 B
import { type FastifyError, type FastifyReply, type FastifyRequest } from 'fastify'; export declare function handleNotFoundError(request: FastifyRequest, reply: FastifyReply): void; export declare function handleValidationError(error: FastifyError, request: FastifyRequest): Error; export declare function handleErrors(error: FastifyError | Error, request: FastifyRequest, reply: FastifyReply): void;