Gathering detailed insights and metrics for http-response-status
Gathering detailed insights and metrics for http-response-status
Gathering detailed insights and metrics for http-response-status
Gathering detailed insights and metrics for http-response-status
http-reasons
Database to lookup http reasons from http response status code
cute-http-response-status-codes
Http response status codes manager
http-response-status-code
A lightweight utility for retrieving HTTP status codes, names, and descriptions. Easily validate, categorize, and manage HTTP responses with built-in methods for informational, success, redirection, client, and server error codes.
http-status-response-anot
npm install http-response-status
Typescript
Module System
Min. Node Version
TypeScript (98.5%)
JavaScript (1.5%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
3 Stars
364 Commits
2 Forks
11 Branches
3 Contributors
Updated on Sep 21, 2024
Latest Version
1.1.3
Package Id
http-response-status@1.1.3
Unpacked Size
134.40 kB
Size
26.57 kB
File Count
18
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
6
HTTP Status Map
These instructions will get you a copy of the project up and running on your local machine for development and testing purposes. See deployment for notes on how to deploy the project on a live system.
Using npm:
npm i http-response-status
Using yarn:
yarn add http-response-status
Here are examples of how you can use http-response-status
.
1import { NHttpStatuses } from 'http-response-status' 2 3const isOk = (httpCode: number) => { 4 if (httpCode === NHttpStatuses.OK) { 5 return true 6 } 7 8 return false 9}
1import { getHttpStatusName } from 'http-response-status' 2 3const isOk = (httpCode: number) => { 4 if (getHttpStatusName(httpCode) === 'OK') { 5 return true 6 } 7 8 return false 9}
1import { HTTP_STATUS_SUCCESS, getHttpStatusCategory } from 'http-response-status' 2 3const isSuccess = (httpCode: number) => { 4 if (getHttpStatusCategory(httpCode) === HTTP_STATUS_SUCCESS) { 5 return true 6 } 7 8 return false 9}
Tests are written with jest
yarn run lint
yarn run test
Deployment is done with Travis.
Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us.
We use SemVer for versioning. For the versions available, see the tags on this repository.
See also the list of contributors who participated in this project.
This project is licensed under the MIT License - see the LICENSE.md file for details
No vulnerabilities found.
Reason
no dangerous workflow patterns detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 0/1 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
dependency not pinned by hash detected -- score normalized to 0
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
22 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-07-14
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More