This is a Node.js module for creating HTTP error objects for Express, Koa, Connect, and similar frameworks. It provides a `createError` API and helpers to attach status codes, messages, headers, and other properties, so you can pass standardized errors through your middleware.
Project status
- Active maintenance: Yes. The upstream GitHub repo shows a recent push on 2026-06-01, and the most recent published package update (v2.0.1 on 2025-11-20) includes CI/workflow and test-related improvements.
- Update cadence: After a long gap from v2.0.0 (2021-12-18) to v2.0.1 (2025-11-20), updates appear sporadic, but activity resumes in 2025-2026 (with another upstream push in 2026).
AI summary generated
Recent updates
v2.0.1
v2.0.1 primarily updates CI and GitHub workflow tooling, including enhanced OSSF scorecard reporting. It also includes a test coverage addition around extending native errors without altering their prototype, plus some internal refactoring for readability.
SecurityFeaturesv2.0.0
No release notes were provided for v2.0.0 by the publisher. The code diff shows major behavior and API changes, especially around how `createError` parses arguments and which error constructors/exports are available due to updated `statuses` mappings.
Breaking1.8.1
Release 1.8.1 was published on 2021-11-14, but no release notes or changelog details were provided by the publisher. As a result, there is no documented information here about new features, bug fixes, breaking changes, security updates, or migration steps.