Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@master4n/http-status

Package Overview
Dependencies
Maintainers
1
Versions
15
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@master4n/http-status

HttpStatus Enum Library

legacy
Source
npmnpm
Version
1.1.2
Version published
Weekly downloads
193
-23.72%
Maintainers
1
Weekly downloads
 
Created
Source

@master4n/http-status

Owner Badge Package License Package Downloads

Installation

npm install @master4n/http-status

Summary

This package contains enum status and value for http.

Details

Files were exported from the package from latest release.

import { HttpStatus } from @master4n/http-status

HttpStatus.OK.name // This will give string value.
HttpStatus.OK.value // This will give status code as number.
HttpStatus.valueOf(200) // This will give HttpStatus OK as string[]
HttpStatus.values() // This will give all status as string
// All possible new HttpStatus added

Available Status Details

HTTP STATUSCODETEXT
CONTINUE100Continue
SWITCHING_PROTOCOLS101Switching Protocols
PROCESSING102Processing
OK200OK
CREATED201Created
ACCEPTED202Accepted
NON_AUTHORITATIVE_INFORMATION203Non-Authoritative Information
NO_CONTENT204No Content
RESET_CONTENT205Reset Content
PARTIAL_CONTENT206Partial Content
MULTI_STATUS207Multi-Status
ALREADY_REPORTED208Already Reported
IM_USED226IM Used
MULTIPLE_CHOICES300Multiple Choices
MOVED_PERMANENTLY301Moved Permanently
MOVED_TEMPORARILY302Moved Temporarily
FOUND302Found
SEE_OTHER303See Other
NOT_MODIFIED304Not Modified
USE_PROXY305Use Proxy
TEMPORARY_REDIRECT307Temporary Redirect
BAD_REQUEST400Bad Request
UNAUTHORIZED401Unauthorized
PAYMENT_REQUIRED402Payment Required
FORBIDDEN403Forbidden
NOT_FOUND404Not Found
METHOD_NOT_ALLOWED405Method Not Allowed
NOT_ACCEPTABLE406Not Acceptable
PROXY_AUTHENTICATION_REQUIRED407Proxy Authentication Required
REQUEST_TIMEOUT408Request Timeout
CONFLICT409Conflict
GONE410Gone
LENGTH_REQUIRED411Length Required
PRECONDITION_FAILED412Precondition failed
REQUEST_ENTITY_TOO_LARGE413Request Entity Too Large
REQUEST_URI_TOO_LONG414Request-URI Too Long
UNSUPPORTED_MEDIA_TYPE415Unsupported Media Type
REQUESTED_RANGE_NOT_SATISFIABLE416Requested Range Not Satisfiable
EXPECTATION_FAILED417Expectation Failed
INSUFFICIENT_SPACE_ON_RESOURCE419Insufficient Space on Resource
METHOD_FAILURE420Method Failure
DESTINATION_LOCKED421Destination Locked
UNPROCESSABLE_ENTITY422Unprocessable Entity
LOCKED423Locked
FAILED_DEPENDENCY424Failed Dependency
UPGRADE_REQUIRED426Upgrade Required
INTERNAL_SERVER_ERROR500Internal Server Error
NOT_IMPLEMENTED501Not Implemented
BAD_GATEWAY502Bad Gateway
SERVICE_UNAVAILABLE503Service Unavailable
GATEWAY_TIMEOUT504Gateway Timeout
HTTP_VERSION_NOT_SUPPORTED505HTTP Version Not Supported
VARIANT_ALSO_NEGOTIATES506Variant Also Negotiates
INSUFFICIENT_STORAGE507Insufficient Storage
LOOP_DETECTED508Loop Detected
NOT_EXTENDED510Not Extended

Credits

These definitions were written by Master4Novice.

Keywords

HttpStatus

FAQs

Package last updated on 28 May 2026

Did you know?

Socket

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.

Install

Related posts