weberrors

A simple web errors package.

npm install weberrors
4 downloads in the last week
4 downloads in the last month

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.

npm loves you