http-status-to-description

0.0.1 • Public • Published

http-status-to-description Build StatusTest Coverage

A node module to simply convert HTTP status codes to their common english description.

Note: Every REST API is different (or not a true REST API), and may have different meaning associated with their response statuses or use unassigned statuses for custom responses. Always check if the response has a message in the body or header before using this lib's descriptions. It is intended as a fall back.

How to Use

1 in the terminal npm install http-status-to-description
2 and then in your node project var httpStatusToDescription = require('http-status-to-description'); httpStatusToDescription('200');

Package Sidebar

Install

npm i http-status-to-description

Weekly Downloads

14

Version

0.0.1

License

MIT

Last publish

Collaborators

  • nexus-uw