http-errors
npmv2.0.1Create HTTP error objects
Overview
http-errors is an npm package that create HTTP error objects. It is extremely widely used, with about 141.1M downloads per week and 2 known dependents in the graph. The latest version is 2.0.1, released under the MIT license.
Who should use it
Teams working in the npm ecosystem who need create HTTP error objects and value a battle-tested, widely-adopted solution.
When not to use it
Consider an alternative if you need to have first-class TypeScript types out of the box, or if a more actively-maintained option better fits your npm stack.
Pros
- Large, well-established user base (141.1M weekly downloads).
- Clear open-source license (MIT).
Cons
- No bundled TypeScript types (may require a separate @types package).
Auto-generated from collected registry metadata. No external claims are inferred.
Relationship graph
Dependencies (left) and dependents (right) of http-errors.
Dependencies
Dev (9)
Used by
Popular packages that depend on http-errors.
Node.js body parsing middleware
Better streaming static file server with Range and conditional-GET support
Fast, unopinionated, minimalist web framework
Fast and low overhead web framework, for Node.js
Koa web app framework
Get and validate the raw body of a readable stream.
assert with status codes
Alternatives to http-errors
HTTP status utility
Create and parse HTTP Content-Type header
Create and parse Content-Disposition header
HTTP response freshness testing
Fast, unopinionated, minimalist web framework
Promise based HTTP client for the browser and node.js
Range header field string parser
Manipulate the HTTP Vary header
Create simple HTTP ETags
Parse HTTP X-Forwarded-For header
Koa web app framework
A small utility, used by Fastify itself, for generating consistent error objects across your codebase and plugins.
Frequently installed together
An AST-based pattern checker for JavaScript.
Execute a callback when a request closes, finishes, or errors
Lightweight debugging utility for Node.js and the browser
The ultimate javascript content-type utility.
HTTP status utility
Create and parse HTTP Content-Type header
Encode a URL to a percent-encoded form, excluding already-encoded sequences
Infer the content-type of a request.
HTTP response freshness testing
Escape string for use in HTML
Manipulate the HTTP Vary header
A querystring parser that supports nesting and arrays, with a depth limit
Version history
| Version | Published | License |
|---|---|---|
| 2.0.1latest | 8 months ago | MIT |
| 2.0.0 | 4 years ago | MIT |
| 1.8.1 | 4 years ago | MIT |
| 1.8.0 | 6 years ago | MIT |
| 1.7.3 | 7 years ago | MIT |
| 1.7.2 | 7 years ago | MIT |
| 1.7.1 | 7 years ago | MIT |
| 1.7.0 | 8 years ago | MIT |
| 1.6.3 | 8 years ago | MIT |
| 1.6.2 | 9 years ago | MIT |
| 1.6.1 | 9 years ago | MIT |
| 1.6.0 | 9 years ago | MIT |
| 1.5.1 | 9 years ago | MIT |
| 1.5.0 | 10 years ago | MIT |
| 1.4.0 | 10 years ago | MIT |
| 1.3.1 | 11 years ago | MIT |
| 1.3.0 | 11 years ago | MIT |
| 1.2.8 | 11 years ago | MIT |
| 1.2.7 | 11 years ago | MIT |
| 1.2.6 | 11 years ago | MIT |
Maintainers
Funding
Frequently asked questions
How do I install http-errors?
Run `npm install http-errors` to add http-errors to your npm project.
What license is http-errors released under?
http-errors is distributed under the MIT license.
How popular is http-errors?
http-errors has approximately 141,129,496 downloads per week and 2 known dependent packages.