{"library":"http-status","type":"library","category":null,"description":"http-status is a utility library for Node.js that provides comprehensive interaction with HTTP status codes, their names, messages, and classes. Currently at version 2.1.0, it offers a stable API for looking up information by either a numeric code or a symbolic name (e.g., `status[404]` or `status.NOT_FOUND`). A key differentiator is its inclusion of both standard IANA codes and an extensive set of 'extra' codes used by popular software like IIS, NGINX, and Cloudflare, which are categorized and accessible. The library is written in TypeScript and supports both ESM and CommonJS module systems, with a focus on ease of use across modern JavaScript environments. It doesn't specify a strict release cadence but shows active maintenance through its recent major version migration to modern module standards.","language":"javascript","status":"active","version":"2.1.0","tags":["javascript","http","connect","frontend","status","express","typescript"],"last_verified":"Wed May 27","install":[{"cmd":"npm install http-status","imports":["import status from 'http-status'","const { default: status } = require('http-status')","import { NOT_FOUND, OK_CODE } from 'http-status'","import status from 'http-status/extra/cloudflare'"]},{"cmd":"yarn add http-status","imports":[]},{"cmd":"pnpm add http-status","imports":[]}],"homepage":null,"github":"https://github.com/adaltas/node-http-status","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/http-status","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/http-status/compatibility"}}