This package has been deprecated

Author message:

This package is no longer relevant. The `http.STATUS_CODES` property is stable now.

node-status-codes

3.0.0 • Public • Published

Deprecated

This package is no longer relevant. The http.STATUS_CODES property is stable now.


node-status-codes Build Status

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

Package Sidebar

Install

npm i node-status-codes

Weekly Downloads

306,794

Version

3.0.0

License

MIT

Unpacked Size

4.48 kB

Total Files

4

Last publish

Collaborators

  • sindresorhus