Skip to content

kikar/html-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

html-errors

Custom Node.js errors for REST API

Usage

First install the package:

npm i html-errors --save

Then require it in the code:

let errors = require('html-errors')

then use it to throw errors:

throw new errors.BadRequest('Invalid email')

License

MIT

About

Custom Node.js errors for REST API

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published