
Company News
Socket Named Top Sales Organization by RepVue
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.
http-status-identifier
Advanced tools
A simple Node JS client that returns an HTTP Status, wrapped in a Promise, given either a status code (i.e 200) or the status name (i.e I'm a teapot).
It also returns an HTTP Status Family (INFORMATIONAL or 1xx, SUCCESS or 2xx, REDIRECTION or 3xx, CLIENT ERROR or 4xx, SERVER ERROR or 5xx) given a status family name or a specific HTTP Status.
Install via NPM.
npm install http-status-identifier
To retrieve HTTP statuses use the identifyStatus method.
The identifyStatus method expects either
string or a numberstringThe returned HttpStatus object contains the following fields:
name: A string which represents the name for the HTTP statuscode: A number which represents the code for the HTTP statusdescription: A string that provides a brief overview of the HTTP statussupplementaryInformation: A string that provides additional information for the HTTP status. This field may be empty where additional information is not necessary.documentationUrl: A string that represents the URL where official documentation for the HTTP status is found. This is often a URL to RFC documentation.import { identifyStatus } from 'http-status-identifier';
// Returns HttpStatus.OK
const okHttpStatus = identifyStatus(200);
// Returns HttpStatus.IM_A_TEAPOT
const imATeapotHttpStatus = identifyStatus("I'm a teapot");
// Returns HttpStatus.BAD_REQUEST
const badRequestHttpStatus = identifyStatus('400');
To retrieve the HTTP Family for a given status use the identifyFamily method.
The identifyFamily method expects either
string or a numberstringimport { identifyFamily } from 'http-status-identifier';
// Returns HttpStatusFamily.SUCCESS
const successFamily = identifyFamily('sUcCesS');
// Returns HttpStatusFamily.SUCCESS
const successFamilyAgain = identifyFamily(200);
FAQs
Get definitions for HTTP status codes
We found that http-status-identifier demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Socket won two 2026 Reppy Awards from RepVue, ranking in the top 5% of all sales orgs. AE Alexandra Lister shares what it's like to grow a sales career here.

Security News
NIST will stop enriching most CVEs under a new risk-based model, narrowing the NVD's scope as vulnerability submissions continue to surge.

Company News
/Security News
Socket is an initial recipient of OpenAI's Cybersecurity Grant Program, which commits $10M in API credits to defenders securing open source software.