Package Exports
- http-status-code
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (http-status-code) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
HTTP Status Codes
Port of Konsolidate Status
Install
npm install http-status-code --save
Usage
var HTTPStatusCode = require('http-status-code');
console.log(HTTPStatusCode.getMessage(200)); // > OK
console.log(HTTPStatusCode.getMessage(429, 'WEBDAV')); // > Unknown
console.log(HTTPStatusCode.getMessage(429, 'HTTP/1.1')); // > Too Many Request
Credits
All credits go to the creator/maintainer(s) of the Konsolidate Status class.