3.0.1 • Published 7 years ago

bluejay-rest-errors v3.0.1

Weekly downloads
3
License
MIT
Repository
github
Last release
7 years ago

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.