You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
6 years ago | |
---|---|---|
.. | ||
index.js | 6 years ago | |
license | 6 years ago | |
package.json | 6 years ago | |
readme.md | 6 years ago |
readme.md
node-status-codes ![Build Status](https://travis-ci.org/sindresorhus/node-status-codes.svg?branch=master)
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