0.1.0 • Published 8 years ago

http-reasons v0.1.0

Weekly downloads
310,023
License
Apache-2.0
Repository
github
Last release
8 years ago

http-reasons

A simple module that allows one to lookup extended information pertaining to a HTTP response code.

Usage

npm install http-reasons --save-dev;
var httpReasons = require('http-reasons');

console.log(httpReasons.lookup(122));
// outputs
// {
//   "name": "Request-URI too long",
//   "detail": "This is a non-standard IE7-only code which means the URI is longer than a maximum of 2083 characters."
// }