http-status-messages
v1.1.0
Published
Maps HTTP status codes to their short human-readable descriptions
Downloads
352
Readme
Maps HTTP status codes to human-readable short descriptons. Data taken from Wikipedia: http://en.wikipedia.org/wiki/HTTP_status_codes
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");