robert2206 8ad867f7a5 commit inicial před 8 roky
..
index.js 8ad867f7a5 commit inicial před 8 roky
license 8ad867f7a5 commit inicial před 8 roky
package.json 8ad867f7a5 commit inicial před 8 roky
readme.md 8ad867f7a5 commit inicial před 8 roky

readme.md

node-status-codes Build Status

Node.js http.STATUS_CODES ponyfill

Ponyfill: A polyfill that doesn't overwrite the native method

The built-in list of HTTP status codes differ between Node.js versions, so this is a good way to make sure it's consistent. Will be kept up to date with latest Node.js.

Install

$ npm install --save node-status-codes

Usage

var nodeStatusCodes = require('node-status-codes');

console.log(nodeStatusCodes[200]);
//=> 'OK'

console.log(nodeStatusCodes[500]);
//=> 'Internal Server Error'

License

MIT © Sindre Sorhus