Home
Docs
GitHub
Pricing
Blog
Log In

Run Sandworm Audit for your App

Get started
Hold on, we're currently generating a fresh version of this report
Generated on May 3, 2024 via pnpm

statuses 1.3.1

HTTP status utility
Package summary
Share
0
issues
1
license
1
MIT
Package created
13 Mar 2014
Version published
12 Nov 2016
Maintainers
2
Total deps
1
Direct deps
0
License
MIT

Issues

0
This package has no issues

Licenses

MIT License

Permissive
OSI Approved
This is a human-readable summary of (and not a substitute for) the license. Disclaimer.
Can
commercial-use
modify
distribute
sublicense
private-use
Cannot
hold-liable
Must
include-copyright
include-license
1 Packages, Including:
statuses@1.3.1
Disclaimer

This deed highlights only some of the key features and terms of the actual license. It is not a license and has no legal value. You should carefully review all of the terms and conditions of the actual license before using the licensed material.

Sandworm is not a law firm and does not provide legal services. Distributing, displaying, or linking to this deed or the license that it summarizes does not create a lawyer-client or any other relationship.

Direct Dependencies

0
All Dependencies CSV
β“˜ This is a list of statuses 's direct dependencies. Data on all dependencies, including transitive ones, is available via CSV download.
NameVersionSizeLicenseTypeVulnerabilities

Visualizations

Frequently Asked Questions

What does statuses do?

The "statuses" is a tremendously useful HTTP status utility for Node.js. Its primary role is to provide a list of status codes and the corresponding messages. This list is a compilation from different reputable sources like the IANA Status Code Registry, the Node.js project, the NGINX project, and the Apache HTTP Server project. As JavaScript works continually on enhancing user experience, this module helps in identifying and resolving the HTTP status codes seamlessly.

How do you use statuses?

"statuses" module is pretty easy to incorporate into your Node.js project. Here is a short guide on how to use it:

First, you need to install the package using npm. Run the following command in your terminal:

$ npm install statuses

Second, require the "statuses" module in your JavaScript file:

var status = require('statuses')

The "statuses" function can be used to return the status message string for a known HTTP status code or the numeric status code for a known HTTP status message:

status(403) // Returns 'Forbidden'
status('403') // Returns 'Forbidden'
status('forbidden') // Returns 403
status('Forbidden') // Returns 403

"statuses" module provides several properties that can be helpful for handling HTTP statuses, for instance:

status['not found'] // Returns 404
status.empty[204] // Returns true
status.message[404] // Returns 'Not Found'
status.redirect[301] // Returns true
status.retry[503] // Returns true

Where are the statuses docs?

The documentation for the "statuses" package can be found within the readme file in its repository on GitHub. The repository's URL is git+https://github.com/jshttp/statuses.git. It provides a comprehensive introduction to the package, including installation instructions, API usage examples, and other useful information.