Install:
$ npm i api-error-class
Example create and return error:
const APIError = ; const someController = { //...some kind of functional throw "Message" 401;};
Install:
$ npm i api-error-class
Example create and return error:
const APIError = ; const someController = { //...some kind of functional throw "Message" 401;};
npm i api-error-class
1
1.0.3
ISC
1.85 kB
4