UNPKG

handle-http-errors

Version:

Type-safe HTTP error handling package providing error classes, standardized responses, error handler, and built-in Express middleware support.

3 lines (2 loc) 187 B
import { ErrorHandlerOptions, HttpResponse } from "./types.js"; export declare const errorHandler: (error: unknown, res: HttpResponse, options?: ErrorHandlerOptions) => Promise<unknown>;