1.0.8 • Published 2 months ago

@master4n/http-status v1.0.8

Weekly downloads
-
License
MIT
Repository
github
Last release
2 months ago

@master4n/http-status

Owner Badge Package Version 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.

1.0.8

2 months ago

1.0.7

2 months ago

1.0.6

4 months ago

1.0.5

4 months ago

1.0.3

4 months ago

1.0.2

5 months ago

1.0.1

5 months ago

1.0.0

5 months ago