New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

http-status-code

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-status-code

Port of [Konsolidate Status](https://github.com/konfirm/konsolidate_hacklang/blob/master/core/status.hh)

  • 1.0.0
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
13K
increased by20.37%
Maintainers
1
Weekly downloads
 
Created
Source

HTTP Status Codes

Port of Konsolidate Status

Install

npm install http-status-code --save

Usage

var HTTPStatusCode = require('http-status-code');

console.log(HTTPStatusCode.getMessage(200)); // > OK
console.log(HTTPStatusCode.getMessage(429, 'WEBDAV')); // > Unknown
console.log(HTTPStatusCode.getMessage(429, 'HTTP/1.1')); // > Too Many Request

Credits

All credits go to the creator/maintainer(s) of the Konsolidate Status class.

FAQs

Package last updated on 05 May 2015

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc