# rest-error

> JavaScript errors that map to HTTP 4xx and 5xx error codes

Latest version **1.3.1** (published 2016-08-05) · MIT license · 0 weekly downloads

## Install

```sh
npm install rest-error
pnpm add rest-error
yarn add rest-error
bun add rest-error
```

## 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.3.1 |
| Published | 2016-08-05 |
| First published | 2014-06-25 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 1 |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | William Riley-Land |
| Maintainers | wprl |
| Keywords | REST, RESTful, API, rfc2616, web, http, error |

## Links

- npm: https://www.npmjs.com/package/rest-error
- Repository: https://github.com/wprl/rest-error
- Issues: https://github.com/wprl/rest-error/issues/new
- npm.io page: https://npm.io/package/rest-error

## Dependencies (1)

- [deco](https://npm.io/package/deco.md) ~0.12.0

## 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.3.1 (latest) — 2016-08-05
- 1.3.0 — 2015-08-27
- 1.2.0 — 2015-06-30
- 1.1.0 — 2014-09-25
- 1.0.0 — 2014-06-25

## README

rest-error
============

JavaScript errors that map to HTTP 4xx and 5xx error codes.

------------

RestError.BadRequest
RestError.Deprecated
RestError.BadSyntax
RestError.Unauthorized
RestError.Forbidden
RestError.NotFound
RestError.MethodNotAllowed
RestError.NotAcceptable
RestError.LockConflict
RestError.Gone
RestError.LengthRequired
RestError.PreconditionFailed
RestError.RequestEntityTooLarge
RestError.RequestUriTooLong
RestError.UnsupportedMediaType
RestError.Teapot
RestError.UnprocessableEntity
RestError.TooManyRequests
RestError.InternalServerError
RestError.Misconfigured
RestError.NotImplemented

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