http-error-util
v0.1.0
Published
Simple HTTP Error Generator based on Status Codes or Names
Downloads
3
Maintainers
Readme
HTTP Error Util
Simple module to generate Error objects with properties:
name
status
message
This makes it extremely easy to plugin into Express' error handling middleware.
Installation
$ npm install http-error-util --save
Example
var httpError = require('http-error-util');
new httpError(http.OK, 'OK');
License
MIT