bluejay-rest-errors
TypeScript icon, indicating that this package has built-in type declarations

3.0.1 • Public • Published

RestErrors

Rest oriented set of errors.

Requirements

  • node >= 7.10
  • typescript >= 2.4

Installation

npm i @bluejay/rest-errors;

Usage

import * as RestErrors from '@bluejay/rest-errors';

const err = new RestErrors.BadRequest('Something went wrong.', { some: { meta: 'data' } });
RestErrors.isRestError(err); // true

Documentation

See Github Pages.

Readme

Keywords

Package Sidebar

Install

npm i bluejay-rest-errors

Weekly Downloads

1

Version

3.0.1

License

MIT

Last publish

Collaborators

  • bluebirds