# prettymuchbryce/http-status-codes

Constants enumerating the HTTP status codes. All status codes defined in RFC1945 (HTTP/1.0, RFC2616 (HTTP/1.1), and RFC2518 (WebDAV) are supported.

Repository: https://github.com/prettymuchbryce/http-status-codes
Canonical: https://ross.abutalabs.com/products/http-status-codes
Language: TypeScript
License: MIT
License Family: permissive
Last push: 2024-07-23T17:07:48+00:00

## Health v2 (maintenance only)
Score: 23/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 0, release rhythm 8, longevity 100
- inputs: {"age_days": 4865, "days_push": 771, "days_rel": null, "gap_med": null, "n_releases_24m": 0}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1122, forks 105 (observed 2026-08-28T04:03:40.037152+00:00)

## What it is
A dependency-free TypeScript/JavaScript library providing constants for all HTTP status codes from RFC1945, RFC2616, RFC7231, RFC2518, RFC6585, RFC7538, and RFC8297. It includes named constants, reason phrases, and lookup helpers to convert between status codes and reason phrases.

## Use cases
- get http status code constants in nodejs
- convert status code number to reason phrase
- look up status code from reason phrase text
- avoid magic numbers for http responses in express
- typescript constants for webdav and early hints status codes

## When to choose
- you want a tiny, zero-dependency way to reference HTTP status codes by name
- you need bidirectional lookup between status codes and reason phrases
- you use TypeScript and want typed constants for all standard and WebDAV status codes

## When to avoid
- your framework already exports status code constants you prefer
- you need HTTP header or request/response handling, not just code constants

## Facets
- artifact type: library
- maturity: stable
- function: http-server, developer-tools
- domain: web-development, backend, apis, developer-tools
- platform: cross-platform
- tags: http-status-codes, constants, typescript, zero-dependency, npm-package, nodejs

## Member repositories
- prettymuchbryce/http-status-codes (main) score 23

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:03:40.037152+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-30T06:40:57.453732+00:00, confidence not recorded.
  - readme: https://github.com/prettymuchbryce/http-status-codes (fetched 2026-08-28T04:03:40.037152+00:00, sha 73b52d04b876)
  - registry_npm: https://registry.npmjs.org/http-status-codes (fetched 2026-08-29T12:44:33.487263+00:00, sha 69cec8403e6a)
- Data as of 2026-08-30T08:39:29.467469+00:00.
