Skip to content
This repository has been archived by the owner. It is now read-only.
Node.js `http.STATUS_CODES` ponyfill
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.editorconfig
.gitattributes
.gitignore init Jul 26, 2015
.jshintrc
.travis.yml init Jul 26, 2015
index.js
license init Jul 26, 2015
package.json
readme.md
test.js

readme.md

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

You can’t perform that action at this time.