1.0.1 • Published 7 years ago

httpstatus-str v1.0.1

Weekly downloads
1
License
MIT
Repository
github
Last release
7 years ago

HTTPStatus

HTTPStatus is a lean lookup table to match a given status code to its status text.

What make it different than others is that it uses string as a lookup key.

Installation

npm install -g httpstatus-str
npm install httpstatus-str

Node.js

const HTTPStatus = require('httpstatus-str');

console.log(HTTPStatus["200"]);

Command Line

> httpstatus 200
OK

Reference

Wikipedia: List of HTTP status codes