https://github.com/caolan/http-status-messages
Maps HTTP status codes to their short human-readable descriptions
https://github.com/caolan/http-status-messages
Last synced: about 1 year ago
JSON representation
Maps HTTP status codes to their short human-readable descriptions
- Host: GitHub
- URL: https://github.com/caolan/http-status-messages
- Owner: caolan
- Created: 2014-06-11T14:24:20.000Z (about 12 years ago)
- Default Branch: master
- Last Pushed: 2016-08-19T09:07:36.000Z (almost 10 years ago)
- Last Synced: 2025-02-13T16:46:20.630Z (over 1 year ago)
- Language: JavaScript
- Size: 1.95 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Maps HTTP status codes to human-readable short descriptons. Data taken from
Wikipedia: http://en.wikipedia.org/wiki/HTTP_status_codes
```js
var msgs = require('http-status-messages');
var assert = require('assert');
assert.equal(msgs[200], "OK");
assert.equal(msgs[404], "Not Found");
assert.equal(msgs[502], "Bad Gateway");
```