# @cley_faye/http-codes-consts

> Constants for HTTP error codes

Latest version **2.0.0** (published 2021-06-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install @cley_faye/http-codes-consts
pnpm add @cley_faye/http-codes-consts
yarn add @cley_faye/http-codes-consts
bun add @cley_faye/http-codes-consts
```

## Health

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

Positive: esm support; no vulnerabilities.

Warnings: low downloads; no types.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 2.0.0 |
| Published | 2021-06-05 |
| First published | 2020-02-23 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 16.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Gabriel Paul "Cley Faye" Risterucci |
| Maintainers | cley_faye |

## Links

- npm: https://www.npmjs.com/package/@cley_faye/http-codes-consts
- Repository: https://github.com/CleyFaye/http-codes-consts
- Homepage: https://github.com/CleyFaye/http-codes-consts#readme
- Issues: https://github.com/CleyFaye/http-codes-consts/issues
- npm.io page: https://npm.io/package/@cley_faye/http-codes-consts

## Recent versions

- 2.0.0 (latest) — 2021-06-05
- 1.0.1 — 2020-04-06
- 1.0.0 — 2020-02-23

## README

List of HTTP codes as constants
===============================

This is a simple list, to avoid magic numbers in the code as well as add a bit
of safety when using TypeScript.

The list of codes is taken from the IANA.

Installation
------------

This is on [npmjs](https://www.npmjs.com/package/@cley_faye/http-codes-consts):

```bash
npm install @cley_faye/http-codes-consts
```

Usage
-----
Constants are available as the default export:

```JavaScript
import HttpCodes from "@cley_faye/http-codes-consts";
console.log(HttpCodes.NotFound); // Output 404
console.log(HttpCodes.NOT_FOUND); // Output 404
```

Names are available in both camel-case and uppercase separated with an
underline.

Caveats
-------
Unfortunately, as this is generated from a "serious" CSV source, the "I'm a
Teapot" error is not available.

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