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

4.0.2 • Public • Published

RestErrors

npm npm npm

Rest oriented set of errors.

Requirements

  • node >= 8.6, tested with:
  • node@8.6.0
  • node@12.8.1
  • typescript >= 4.0, tested with:
  • typescript@4.0.2

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.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
4.0.22latest
4.0.0-beta.00beta

Version History

VersionDownloads (Last 7 Days)Published
4.0.22
4.0.10
4.0.00
4.0.0-beta.00
3.0.120
3.0.110
3.0.100
3.0.90
3.0.80
3.0.70

Package Sidebar

Install

npm i @bluejay/rest-errors

Weekly Downloads

2

Version

4.0.2

License

MIT

Unpacked Size

66.2 kB

Total Files

67

Last publish

Collaborators

  • asifarran
  • bluebirds