Exact generated types
Literal-preserving lookups and unions generated from one reviewable registry.
Tiny, standards-backed HTTP status codes with exact types, safe parsing, and literal-preserving lookups. Zero runtime dependencies.
$npm install http-status-liteTyped from end to end
Literal inputs keep literal outputs, so your editor knows the exact name and message—not just string.
import { Status, getStatus, isSuccess }
from 'http-status-lite';
const status = getStatus(404);
status.name; // 'NOT_FOUND'
status.message; // 'Not Found'
isSuccess(Status.NO_CONTENT); // trueLiteral-preserving lookups and unions generated from one reviewable registry.
Parse, validate, assert, and narrow unknown status values at runtime.
Import only constants, predicates, or metadata through tree-shakeable entry points.
Standards registry
64 represented entries, sourced from the IANA registry.
Pick the smallest entry point
The original httpStatusLite namespace and legacy RFC names remain supported.