iana-http-status-codes
v0.0.4
Published
node module with enumerations of HTTP statuses.
Downloads
5
Readme
IANA-HTTP-Status-Codes
node module with enumerations of HTTP statuses.
var status = require('iana-htpp-status-codes');
console.log(status.Code.NOT_FOUND); // "404"
console.log(status.Message['404']); // "Not Found"
console.log(status.Message[status.Code.NOT_FOUND]); // "Not Found"
Enums generated from http://www.iana.org/assignments/http-status-codes/http-status-codes.xhtml