Skip to content

Cloudxtreme/simple-http-errors

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Simple HTTP Errors

A simple error maker thingy.

Codes

UNAUTHORIZED: 401
NOT_FOUND: 404
UNPROCESSABLE_ENTITY: 422

(more coming as needed)

Use

var errors = require('simple-http-errors');

//...
if (item === undefined) {
  return next(errors.notFound());
}

About

A simple error maker thingy for Node/Express

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published