# @rakered/errors

> Convenient custom errors matching http status code

Latest version **1.1.0** (published 2021-02-17) · MIT license · 0 weekly downloads

## Install

```sh
npm install @rakered/errors
pnpm add @rakered/errors
yarn add @rakered/errors
bun add @rakered/errors
```

## 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.1.0 |
| Published | 2021-02-17 |
| First published | 2021-02-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 6.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 31 |
| Author | Stephan Meijer |
| Maintainers | smeijer |

## Links

- npm: https://www.npmjs.com/package/@rakered/errors
- Repository: https://github.com/rakered/rakered
- Homepage: https://github.com/rakered/rakered#readme
- Issues: https://github.com/rakered/rakered/issues
- npm.io page: https://npm.io/package/@rakered/errors

## Recent versions

- 1.1.0 (latest) — 2021-02-17
- 1.0.0 — 2021-02-05

## README

# @rakered/errors

Convenient custom errors matching http status code

![social image](https://github.com/rakered/rakered/raw/main/packages/errors/docs/social.jpg)

## Usage

```js
import { AuthenticationError } from '@rakered/errors';

throw new AuthenticationError('you need to be logged in');
// » { code: 401, message: 'you need to be logged in' }
```

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