You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

http-status-name

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

http-status-name

Get HTTP-Status name by number

2.1.0
latest
Source
npmnpm
Version published
Weekly downloads
2
-77.78%
Maintainers
1
Weekly downloads
 
Created
Source

http-status-name Build Status

Get HTTP-status name by code.

Installation

From the same directory as your project's package.json, install this package with the following command:

npm install http-status-name --save-dev

Usage

httpStatusName  = require("http-status-name")

httpStatusName('200') 
// "OK"

httpStatusName('404') 
// "Not_Found"

httpStatusName('500')
// "Internal_Server_Error"

Try it out yourself.

Contributing

Found a :beetle:? Have a feature request? Please create an Issue.

Pull requests are also encouraged, and if you find this project useful please consider :star:-ing it to show your support!

Thank you!

Authors

Andre Helberg

Alecia Bester

License

Copyright (c) 2016 Alecia Bester, contributors. Released under the MIT license

Keywords

http

FAQs

Package last updated on 14 Mar 2016

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