api-error-class

1.0.3 • Public • Published

Install:

$ npm i api-error-class

Example create and return error:

const APIError = require("api-error-class");
 
 
const someController = (req, res) => {
    //...some kind of functional
    throw new APIError("Message", 401);
};
    
 

Package Sidebar

Install

npm i api-error-class

Weekly Downloads

1

Version

1.0.3

License

ISC

Unpacked Size

1.85 kB

Total Files

4

Last publish

Collaborators

  • pshenok