# http-status-code-const-enum

> Basic const enum declaration for HTTP status codes

Latest version **1.0.2** (published 2018-12-16) · MIT license · 0 weekly downloads

## Install

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

## Health

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

Positive: no vulnerabilities.

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

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.2 |
| Published | 2018-12-16 |
| First published | 2018-02-13 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 20.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Arturas Molcanovas |
| Maintainers | alorel |
| Keywords | typescript, const, enum, http, status, code |

## Links

- npm: https://www.npmjs.com/package/http-status-code-const-enum
- Repository: https://github.com/Alorel/http-status-code-const-enum
- Issues: https://github.com/Alorel/http-status-code-const-enum/issues
- npm.io page: https://npm.io/package/http-status-code-const-enum

## Alternatives

- [flatbuffers](https://npm.io/package/flatbuffers.md) — 6.0M weekly downloads
- [jwt-simple](https://npm.io/package/jwt-simple.md) — 259.5K weekly downloads
- [@exodus/patch-broken-hermes-typed-arrays](https://npm.io/package/@exodus/patch-broken-hermes-typed-arrays.md) — 28.5K weekly downloads
- [@native-to-anchor/buffer-layout](https://npm.io/package/@native-to-anchor/buffer-layout.md) — 12.2K weekly downloads
- [binary-parser-encoder](https://npm.io/package/binary-parser-encoder.md) — 5.3K weekly downloads

## Recent versions

- 1.0.2 (latest) — 2018-12-16
- 1.0.1 — 2018-02-13
- 1.0.0 — 2018-02-13

## README

Say no to typos.

`npm install -d http-status-code-const-enum`

Basic usage:

```typescript
import {Request, Response} from 'express';
import {HttpStatusCode} from 'http-status-code-const-enum';

function myHandler(req: Request, res: Response) {
  res.status(HttpStatusCode.NO_CONTENT)
    .end();
}
```

Please note that this is a **const enum**, meaning it cannot be used in a pure JavaScript environment and is therefore only suited for TypeScript.

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