# http-errors-status-code

> http-errors status code

Latest version **0.0.4** (published 2019-10-28) · ISC license · 0 weekly downloads

## Install

```sh
npm install http-errors-status-code
pnpm add http-errors-status-code
yarn add http-errors-status-code
bun add http-errors-status-code
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.0.4 |
| Published | 2019-10-28 |
| First published | 2019-04-20 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 2.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 1 |
| Author | nodejh |
| Maintainers | nodejh |

## Links

- npm: https://www.npmjs.com/package/http-errors-status-code
- Repository: https://github.com/nodejh/http-errors-status-code
- Homepage: https://github.com/nodejh/http-errors-status-code#readme
- Issues: https://github.com/nodejh/http-errors-status-code/issues
- npm.io page: https://npm.io/package/http-errors-status-code

## Recent versions

- 0.0.4 (latest) — 2019-10-28
- 0.0.3 — 2019-04-20
- 0.0.2 — 2019-04-20
- 0.0.1 — 2019-04-20

## README

# HTTP Error Status Code

## Usage

Install:

```sh
$ npm i http-errors-status-code --save
```

Use:

```js
const { getStatusName, getStatusCode } = require('http-errors-status-code');

getStatusName(400); // BadRequest
getStatusCode('BadRequest'); // 400
```

## API

- getStatusName(number): string
- getStatusCode(string): number

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