1.0.3 • Published 4 years ago
http-error-lib v1.0.3
http-error-lib
About
Node module to throw custom Error
.
Installation
npm install http-error-lib
Exampleß
const { NotFound } = require("http-error-lib");
...
throw new NotFound();
Methods
- BadRequest
- Unauthorized
- Forbidden
- NotFound
- Conflict
- FailedDependency
- InternalServerError