http-status-name

2.1.0 • Public • Published

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 🐞? Have a feature request? Please create an Issue.

Pull requests are also encouraged, and if you find this project useful please consider ⭐️-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

Package Sidebar

Install

npm i http-status-name

Weekly Downloads

4

Version

2.1.0

License

MIT

Last publish

Collaborators

  • aleciafb