Tiny, standards-backed, type-safe HTTP status codes for Node.js and browsers.
What it is
A small, type-safe library of standards-backed HTTP status codes for Node.js and browsers.
The problem
Developers need status-code names, categories, and lifecycle metadata. Without a library they fall back on memorized numeric checks or hand-written lists that go stale, and many alternatives bring a heavier dependency than the task needs.
What it delivers
- Consumers can retrieve name, category, and lifecycle metadata for status codes.
- Consumers can classify codes into success, client error, and server error categories.
- Consumers can parse and validate status codes.
- Builds rely on a reviewable standards snapshot without runtime network access.
Limits to know
- The IANA registry changes over time.
- Obsolete, temporary, and unused codes must remain distinguishable.
- Typing and ESM and CommonJS compatibility must not depend on live network access.
Status and role
- Status: Published npm package
- My role: Library design and package engineering
- Scope: Typed APIs, compatibility, and package distribution