Errors with status codes and more.
npm install bluejay-rest-errorsRest oriented set of errors.
- node >= 7.10
- typescript >= 2.4
npm i @bluejay/rest-errors;
``typescript
import * as RestErrors from '@bluejay/rest-errors';
const err = new RestErrors.BadRequest('Something went wrong.', { some: { meta: 'data' } });
RestErrors.isRestError(err); // true
``
See Github Pages.