weberrors

0.2.0 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i weberrors

Weekly Downloads

0

Version

0.2.0

License

MIT

Last publish

Collaborators

  • yanatan16