Socket
Socket
Sign inDemoInstall

node-status-codes

Package Overview
Dependencies
0
Maintainers
1
Versions
4
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    node-status-codes

Node.js `http.STATUS_CODES` ponyfill


Version published
Maintainers
1
Created

Readme

Source

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

Keywords

FAQs

Last updated on 30 Sep 2016

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc