sindresorhus / Node Status Codes
Licence: mit
Node.js `http.STATUS_CODES` ponyfill
Stars: ✭ 34
Programming Languages
javascript
184084 projects - #8 most used programming language
Deprecated
This package is no longer relevant. The http.STATUS_CODES
property is stable now.
node-status-codes
Node.js
http.STATUS_CODES
ponyfill
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
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].