0.0.2 • Published 8 years ago

@nathanfaucett/http_error v0.0.2

Weekly downloads
1
License
MIT
Repository
github
Last release
8 years ago

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";