# @readme/http-status-codes

> Utility to lookup HTTP status codes

Latest version **9.0.6** (published 2025-11-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @readme/http-status-codes
pnpm add @readme/http-status-codes
yarn add @readme/http-status-codes
bun add @readme/http-status-codes
```

## Health

**Score 65/100 (B)** — status: stable.

Positive: has types; esm support; no vulnerabilities; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 9.0.6 |
| Published | 2025-11-11 |
| First published | 2020-03-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Node | >=20 |
| Dependencies | 0 |
| Unpacked size | 45.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 400 |
| Author | Jon Ursenbach <jon@ursenba.ch> |
| Maintainers | gkoberger, domharrington, mjcuva, kanadgupta, jonursenbach, rafegoldberg, dannobytes, llimllib, darrenyong, azinder1, kellyjosephprice |

## Links

- npm: https://www.npmjs.com/package/@readme/http-status-codes
- Repository: https://github.com/readmeio/oas
- Issues: https://github.com/readmeio/oas/issues
- npm.io page: https://npm.io/package/@readme/http-status-codes

## Recent versions

- 9.0.6 (latest) — 2025-11-11
- 9.0.5 — 2025-10-06
- 9.0.4 — 2025-07-29
- 9.0.3 — 2025-06-04
- 9.0.2 — 2025-04-04
- 9.0.1 — 2025-03-06
- 9.0.0 — 2025-03-05
- 8.0.1 — 2023-10-07
- 8.0.0 — 2023-05-05
- 7.2.0 — 2022-01-27
- 7.1.3 — 2021-12-01
- 7.1.2 — 2021-09-17
- 7.1.1 — 2021-05-12
- 7.1.0 — 2020-07-16
- 7.0.0 — 2020-06-20
- … 15 more at https://npm.io/package/@readme/http-status-codes/versions

## README

# @readme/http-status-codes

Utility to lookup HTTP status codes.

[![npm](https://img.shields.io/npm/v/@readme/http-status-codes)](https://npm.im/@readme/http-status-codes) [![Build](https://github.com/readmeio/oas/workflows/CI/badge.svg)](https://github.com/readmeio/oas/tree/main/packages/http-status-codes)

<a href="https://readme.com">
<picture>
  <source media="(prefers-color-scheme: dark)" srcset="https://raw.githubusercontent.com/readmeio/.github/main/oss-header-dark.png">
  <source media="(prefers-color-scheme: light)" srcset="https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png">
  <img alt="ReadMe Open Source" src="https://raw.githubusercontent.com/readmeio/.github/main/oss-header.png">
</picture>
</a>

## Installation

```sh
npm install --save @readme/http-status-codes
```

## Usage

```js
import { getStatusCode } from '@readme/http-status-codes';

console.log(getStatusCode(429));

// { code: 429, message: 'Too Many Requests', success: false }
```

---
_Source: https://npm.io/package/@readme/http-status-codes · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
