weberrors
v0.2.0
Published
A simple web errors package.
Downloads
1
Readme
node-weberrors
A simple web errors packge.
Install
npm install weberrors --save
Usage
var weberrors = require('weberrors')
throw weberrors.BadRequest("username is incorrect")
throw weberrors.WebError(508, "some weird error")
throw weberrors.NotFound()
License
See LICENSE file.