herror
0.1.0 • Public • Published
herror
Simple HTTP error constructor, as if this problem is still open.
Example
var err = herror(403);
err.code
err.message
err.toString()
API
err = herror(code)
Make new error from HTTP status code.
Install
npm install herror
License
MIT
Package Sidebar
Install
Weekly Downloads