https-status-lookup
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
data
test
.gitignore
.travis.yml
LICENSE
README.md
index.js
package-lock.json
package.json

README.md

https-status-lookup

Get HTTP Status Code Information

Installation

npm install https-status-lookup

Reference

  • [httpStatusLookup]

    • [getCategoryHeadings]
    • [getStatusCode]
    • [getStatusCodesByCategory]
    • [getStatusMessageForCode]
    • [guessTheStatusCode]

    Example

const httpStatusLookup = require('../index').httpStatusLookup;

const result = httpStatusLookup.getStatusCode();

const result = httpStatusLookup.getStatusCodesByCategory('4xx');

const result = httpStatusLookup.getStatusCodesByCategory('400');

const result = httpStatusLookup.guessTheStatusCode();

Testing

npm test

Build and deployment

Build Status

Coverage Status