# http-error-codes

> "list of all possible http error code with status"

Latest version **1.0.1** (published 2017-05-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install http-error-codes
pnpm add http-error-codes
yarn add http-error-codes
bun add http-error-codes
```

## 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.1 |
| Published | 2017-05-22 |
| First published | 2017-05-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | shivani-tomar |
| Maintainers | shivani.tomar |
| Keywords | ["http-error-code", "error-code", "error-codes", "http-error-codes", "http-errors", "client-server-error-codes"] |

## Links

- npm: https://www.npmjs.com/package/http-error-codes
- Repository: https://github.com/shivani-tomar/http-error-codes
- Homepage: https://github.com/shivani-tomar/http-error-codes#readme
- Issues: https://github.com/shivani-tomar/http-error-codes/issues
- npm.io page: https://npm.io/package/http-error-codes

## Alternatives

- [@sentry/react-native](https://npm.io/package/@sentry/react-native.md) — 2.6M weekly downloads
- [@ardatan/aggregate-error](https://npm.io/package/@ardatan/aggregate-error.md) — 708.1K weekly downloads
- [custom-error-generator](https://npm.io/package/custom-error-generator.md) — 2.0K weekly downloads
- [@technik-sde/prosemirror-recreate-transform](https://npm.io/package/@technik-sde/prosemirror-recreate-transform.md) — 1.5K weekly downloads
- [@suchipi/error-utils](https://npm.io/package/@suchipi/error-utils.md) — 78 weekly downloads

## Recent versions

- 1.0.1 (latest) — 2017-05-22
- 1.0.0 — 2017-05-22

## README

http error code middleware provide all possible http error codes
(1XX - informational responses
 2XX - success
 3XX - redirection
 4XX - client
 5XX - server
 internet information services
 cloudfare
 nginx
)

Installation

npm install http-error-codes

API

var httpErrorCodes = require('http-error-codes')

httpErrorCodes.errorCode(error ,message)

error
 It is an error message in the form of string in camelCase format like badRequest , notFound etc . It is required

 message
This is optional parameter containing user friendly message in the form of string 

Usage

var express = require('express');
var httpErrorCodes = require('http-error-codes');

var app = express();

app.get('/', (req, res) => {
	res.send(httpErrorCodes.errorCode('notFound', 'page is not available'));
});

app.listen(3000, () => {
	console.log('app is listening');
});

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