# @homitag/httpstatuserror

> An ES6 class that helps us create error objects with standard http codes

Latest version **1.0.4** (published 2019-07-14) · GPL-3.0 license · 0 weekly downloads

## Install

```sh
npm install @homitag/httpstatuserror
pnpm add @homitag/httpstatuserror
yarn add @homitag/httpstatuserror
bun add @homitag/httpstatuserror
```

## 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.4 |
| Published | 2019-07-14 |
| First published | 2019-07-09 |
| Weekly downloads | 0 |
| License | GPL-3.0 |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 36.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 0 |
| Author | Kamarudeen |
| Maintainers | kamarudeen |
| Keywords | http, errors |

## Links

- npm: https://www.npmjs.com/package/@homitag/httpstatuserror
- Repository: https://github.com/homitagdev/HTTPStatusError
- Homepage: https://github.com/homitagdev/HTTPStatusError#readme
- Issues: https://github.com/homitagdev/HTTPStatusError/issues
- npm.io page: https://npm.io/package/@homitag/httpstatuserror

## 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.4 (latest) — 2019-07-14
- 1.0.3 — 2019-07-10
- 1.0.1 — 2019-07-10
- 1.0.0 — 2019-07-09

## README

# HTTPStatusError

This ES6 class built over Javascript Error class. This helps you add HTTP status codes, additional custom Error codes specific to your applications. 

### Usage

const HTTPStatusError = require('@homitag/httpstatuserror')

let errObj = new HTTPStatusError(HTTPStatusError.http_codes.BadRequest, 'Required username parameter is missing', new Error())

Note that the third is an optional parameter. You can use it for embeding your Javascript error object

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