Skip to content

nathanfaucett/js-http_error

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HttpError

HttpError for the browser and node.js

var HttpError = require("@nathanfaucett/http_error");


var error = new HttpError(404);

error instanceof Error === true;
error.name === "NotFoundError";
error.statusCode === 404;
error.message === "NotFoundError: 404 Not Found";

About

HttpError for the browser and node.js

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published