node package manager
Stop writing boring code. Discover, share, and reuse within your team. Create a free org »

weberrors

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.