Readonly
codeReadonly
phraseStatic
ACCEPTED202 Accepted [RFC9110, Section 15.3.3]
Static
ALREADY_208 Already Reported [RFC5842, Section 7.1]
Static
BAD_502 Bad Gateway [RFC9110, Section 15.6.3]
Static
BAD_400 Bad Request [RFC9110, Section 15.5.1]
Static
CONFLICT409 Conflict [RFC9110, Section 15.5.10]
Static
CONTENT_413 Content Too Large [RFC9110, Section 15.5.14]
Static
CONTINUE100 Continue [RFC9110, Section 15.2.1]
Static
CREATED201 Created [RFC9110, Section 15.3.2]
Static
EXPECTATION_417 Expectation Failed [RFC9110, Section 15.5.18]
Static
FAILED_424 Failed Dependency [RFC4918, Section 11.4]
Static
FORBIDDEN403 Forbidden [RFC9110, Section 15.5.4]
Static
FOUND302 Found [RFC9110, Section 15.4.3]
Static
GATEWAY_504 Gateway Timeout [RFC9110, Section 15.6.5]
Static
GONE410 Gone [RFC9110, Section 15.5.11]
Static
HTTP_505 HTTP Version Not Supported [RFC9110, Section 15.6.6]
Static
IM_418 I'm a teapot [RFC7168]
Static
IM_226 IM Used [RFC3229, Section 10.4.1]
Static
INSUFFICIENT_507 Insufficient Storage [RFC4918, Section 11.5]
Static
INTERNAL_500 Internal Server Error [RFC9110, Section 15.6.1]
Static
LENGTH_411 Length Required [RFC9110, Section 15.5.12]
Static
LOCKED423 Locked [RFC4918, Section 11.3]
Static
LOOP_508 Loop Detected [RFC5842, Section 7.2]
Static
METHOD_405 Method Not Allowed [RFC9110, Section 15.5.6]
Static
MISDIRECTED_421 Misdirected Request [RFC9110, Section 15.5.20]
Static
MOVED_301 Moved Permanently [RFC9110, Section 15.4.2]
Static
MULTI_207 Multi-Status [RFC4918, Section 11.1]
Static
MULTIPLE_300 Multiple Choices [RFC9110, Section 15.4.1]
Static
NETWORK_511 Network Authentication Required [RFC6585, Section 6]
Static
NO_204 No Content [RFC9110, Section 15.3.5]
Static
NON_203 Non-Authoritative Information [RFC9110, Section 15.3.4]
Static
NOT_406 Not Acceptable [RFC9110, Section 15.5.7]
Static
NOT_510 Not Extended [RFC2774, Section 7]
Static
NOT_404 Not Found [RFC9110, Section 15.5.5]
Static
NOT_501 Not Implemented [RFC9110, Section 15.6.2]
Static
NOT_304 Not Modified [RFC9110, Section 15.4.5]
Static
OK200 OK [RFC9110, Section 15.3.1]
Static
PARTIAL_206 Partial Content [RFC9110, Section 15.3.7]
Static
PAYMENT_402 Payment Required [RFC9110, Section 15.5.3]
Static
PERMANENT_308 Permanent Redirect [RFC9110, Section 15.4.8]
Static
PRECONDITION_412 Precondition Failed [RFC9110, Section 15.5.13]
Static
PRECONDITION_428 Precondition Required [RFC6585, Section 3]
Static
PROCESSING102 Processing [RFC2518, Section 10.1]
Static
PROXY_407 Proxy Authentication Required [RFC9110, Section 15.5.8]
Static
RANGE_416 Range Not Satisfiable [RFC9110, Section 15.5.17]
Static
REQUEST_431 Request Header Fields Too Large [RFC6585, Section 5]
Static
REQUEST_408 Request Timeout [RFC9110, Section 15.5.9]
Static
RESET_205 Reset Content [RFC9110, Section 15.3.6]
Static
SEE_303 See Other [RFC9110, Section 15.4.4]
Static
SERVICE_503 Service Unavailable [RFC9110, Section 15.6.4]
Static
SWITCHING_101 Switching Protocols [RFC9110, Section 15.2.2]
Static
TEMPORARY_307 Temporary Redirect [RFC9110, Section 15.4.7]
Static
TOO_425 Too Early [RFC8470, Section 5.2]
Static
TOO_429 Too Many Requests [RFC6585, Section 4]
Static
UNAUTHORIZED401 Unauthorized [RFC9110, Section 15.5.2]
Static
UNAVAILABLE_451 Unavailable For Legal Reasons [RFC7725]
Static
UNPROCESSABLE_422 Unprocessable Content [RFC9110, Section 15.5.21]
Static
UNSUPPORTED_415 Unsupported Media Type [RFC9110, Section 15.5.16]
Static
UPGRADE_426 Upgrade Required [RFC9110, Section 15.5.22]
Static
URI_414 URI Too Long [RFC9110, Section 15.5.15]
Static
USE_305 Use Proxy [RFC9110, Section 15.4.6]
Static
VARIANT_506 Variant Also Negotiates [RFC2295, Section 8.1]
Determines if the current HTTP status code falls within the client error response range (400-499).
Determines if the current HTTP status code falls within the informational response range (100-199).
Determines if the current HTTP status code falls within the redirection response range (300-399).
Determines if the current HTTP status code falls within the server error response range (500-599).
Determines if the current HTTP status code falls within the success response range (200-299).
Returns a string representation of an object.
Static
from
Represents HTTP status codes along with their standard reason phrases.
This class provides a set of constants corresponding to standard HTTP status codes, which are compliant with various RFC documents. It enables developers to use predefined instances for status codes and reason phrases, thus improving readability and reducing potential errors.
The
StatusCode
class implements theToHttpResponse
interface, which may provide additional functionality when interacting with HTTP responses.