httpstatuses

3.0.0 • Public • Published

HTTP Statuses

Plain-English interface for working with HTTP status codes.

Build Status badge npm package version badge license badge

Why?

The standard http module provides a STATUS_CODES object that returns a string describing the given status code. While this is quite useful, I want to go the opposite way with the goal of improving code readability.

Example

httpStatuses = require('httpstatuses')
console.log(httpStatuses.not_found) # 404
console.log(httpStatuses[404]) # Not Found

License

This software is released under the MIT license. You can find a copy in LICENSE.txt or at opensource.org.

Readme

Keywords

Package Sidebar

Install

npm i httpstatuses

Weekly Downloads

8

Version

3.0.0

License

none

Last publish

Collaborators

  • rampantmonkey