Create HTTP Errors
Browse cluster: Node.js HTTP utilities & middleware →http-errors is a Node.js module that simplifies creating HTTP error objects for web frameworks like Express, Koa, and Connect. The library provides a factory function and constructor classes to generate properly formatted error objects with customizable status codes, messages, headers, and properties. Built as an npm package for Node.js, it offers both a generic `createError` function and specific constructors for standard HTTP status codes, along with utilities to identify and work with HTTP error objects.