npm install @ferrow/http-status-catalogComplete HTTP status code reference with IANA registry data, lookup utilities, and category helpers.
import { lookup, isRetryable } from "http-status-catalog";
const status = lookup(429);
console.log(`${status.code} ${status.name}`); // 429 Too Many Requests
console.log(`Retryable: ${status.retryable}`); // trueGet detailed information for a specific HTTP status code.
interface StatusInfo {
code: number;
name: string;
category: string;
description: string;
retryable: boolean;
cacheable: boolean;
rfc?: string;
}Check if code is 4xx.
Check if code is 5xx.
Check if the status code suggests a retryable error (408, 429, 500, 502, 503, 504, 507, 421, 425).
Check if the status code is cacheable by default.
Get all codes in a category: informational, success, redirection, client-error, server-error.
Get all available category names.
Get all status codes, sorted by code.
- Static registry; no updates without new release
- Covers all IANA-assigned codes through RFC 8470
- No vendor-specific or non-standard codes
Part of the ferrow-toolkit collection · Sponsored by Ferrow