UNPKG

handle-http-errors

Version:

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

7 lines (6 loc) 481 B
export type { ErrorDetails, ErrorResponse, HttpResponse, ErrorHandlerOptions } from './types.js'; export { HttpError, ValidationError, BadRequestError, UnauthorizedError, ForbiddenError, NotFoundError, InternalServerError, DEFAULT_ERROR } from './errors.js'; export { errorProcessor } from './error-processor.js'; export { errorHandler } from './error-handler.js'; export { errorMiddleware } from './error-middleware.js'; export { isDevelopment, isProduction } from './config.js';