@rakered/errors

1.1.0 • Public • Published

@rakered/errors

Convenient custom errors matching http status code

social image

Usage

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

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

Readme

Keywords

none

Package Sidebar

Install

npm i @rakered/errors

Weekly Downloads

22

Version

1.1.0

License

MIT

Unpacked Size

6.46 kB

Total Files

11

Last publish

Collaborators

  • smeijer