https://github.com/postmanlabs/http-reasons
Database to lookup http reasons from http response status code
https://github.com/postmanlabs/http-reasons
Last synced: 3 months ago
JSON representation
Database to lookup http reasons from http response status code
- Host: GitHub
- URL: https://github.com/postmanlabs/http-reasons
- Owner: postmanlabs
- License: apache-2.0
- Created: 2016-06-22T13:21:29.000Z (over 9 years ago)
- Default Branch: develop
- Last Pushed: 2017-06-14T15:31:32.000Z (over 8 years ago)
- Last Synced: 2025-01-30T07:11:14.059Z (12 months ago)
- Language: JavaScript
- Size: 11.7 KB
- Stars: 10
- Watchers: 10
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# http-reasons
A simple module that allows one to lookup extended information pertaining to a HTTP response code.
## Usage
```terminal
npm install http-reasons --save-dev;
```
```javascript
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."
// }
```