Enum Class HttpStatus
- All Implemented Interfaces:
Serializable
,Comparable<HttpStatus>
,Constable
Enumeration representing HTTP status codes as defined in the HTTP/1.1 specification.
Each constant in this enum represents a specific HTTP status code, along with its series and reason phrase.
For more information about HTTP status codes, refer to the HTTP/1.1 specification: RFC 7231 - Hypertext Transfer Protocol (HTTP/1.1)
- Since:
- 1.0
- Author:
- Blyzhnytsia Team
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescription202 Accepted
.208 Already Reported
.502 Bad Gateway
.400 Bad Request
.509 Bandwidth Limit Exceeded
409 Conflict
.100 Continue
.201 Created
.103 Early Hints
.417 Expectation Failed
.424 Failed Dependency
.403 Forbidden
.302 Found
.504 Gateway Timeout
.410 Gone
.505 HTTP Version Not Supported
.418 I'm a teapot
.226 IM Used
.507 Insufficient Storage
500 Internal Server Error
.411 Length Required
.423 Locked
.508 Loop Detected
405 Method Not Allowed
.301 Moved Permanently
.207 Multi-Status
.300 Multiple Choices
.511 Network Authentication Required
.204 No Content
.203 Non-Authoritative Information
.406 Not Acceptable
.510 Not Extended
404 Not Found
.501 Not Implemented
.304 Not Modified
.200 OK
.206 Partial Content
.413 Payload Too Large
.402 Payment Required
.308 Permanent Redirect
.412 Precondition failed
.428 Precondition Required
.102 Processing
.407 Proxy Authentication Required
.431 Request Header Fields Too Large
.408 Request Timeout
.416 Requested Range Not Satisfiable
.205 Reset Content
.303 See Other
.503 Service Unavailable
.101 Switching Protocols
.307 Temporary Redirect
.425 Too Early
.429 Too Many Requests
.401 Unauthorized
.451 Unavailable For Legal Reasons
.422 Unprocessable Entity
.415 Unsupported Media Type
.426 Upgrade Required
.414 URI Too Long
.506 Variant Also Negotiates
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final String
private final HttpStatus.Series
private final int
-
Constructor Summary
ConstructorsModifierConstructorDescriptionprivate
HttpStatus
(int value, HttpStatus.Series series, String reasonPhrase) -
Method Summary
Modifier and TypeMethodDescriptionint
getValue()
static HttpStatus
Returns the enum constant of this class with the specified name.static HttpStatus[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CONTINUE
100 Continue
.- See Also:
-
SWITCHING_PROTOCOLS
101 Switching Protocols
.- See Also:
-
PROCESSING
102 Processing
.- See Also:
-
EARLY_HINTS
103 Early Hints
.- See Also:
-
OK
200 OK
.- See Also:
-
CREATED
201 Created
.- See Also:
-
ACCEPTED
202 Accepted
.- See Also:
-
NON_AUTHORITATIVE_INFORMATION
203 Non-Authoritative Information
.- See Also:
-
NO_CONTENT
204 No Content
.- See Also:
-
RESET_CONTENT
205 Reset Content
.- See Also:
-
PARTIAL_CONTENT
206 Partial Content
.- See Also:
-
MULTI_STATUS
207 Multi-Status
.- See Also:
-
ALREADY_REPORTED
208 Already Reported
.- See Also:
-
IM_USED
226 IM Used
.- See Also:
-
MULTIPLE_CHOICES
300 Multiple Choices
.- See Also:
-
MOVED_PERMANENTLY
301 Moved Permanently
.- See Also:
-
FOUND
302 Found
.- See Also:
-
SEE_OTHER
303 See Other
.- See Also:
-
NOT_MODIFIED
304 Not Modified
.- See Also:
-
TEMPORARY_REDIRECT
307 Temporary Redirect
.- See Also:
-
PERMANENT_REDIRECT
308 Permanent Redirect
.- See Also:
-
BAD_REQUEST
400 Bad Request
.- See Also:
-
UNAUTHORIZED
401 Unauthorized
.- See Also:
-
PAYMENT_REQUIRED
402 Payment Required
.- See Also:
-
FORBIDDEN
403 Forbidden
.- See Also:
-
NOT_FOUND
404 Not Found
.- See Also:
-
METHOD_NOT_ALLOWED
405 Method Not Allowed
.- See Also:
-
NOT_ACCEPTABLE
406 Not Acceptable
.- See Also:
-
PROXY_AUTHENTICATION_REQUIRED
407 Proxy Authentication Required
.- See Also:
-
REQUEST_TIMEOUT
408 Request Timeout
.- See Also:
-
CONFLICT
409 Conflict
.- See Also:
-
GONE
410 Gone
.- See Also:
-
LENGTH_REQUIRED
411 Length Required
.- See Also:
-
PRECONDITION_FAILED
412 Precondition failed
.- See Also:
-
PAYLOAD_TOO_LARGE
413 Payload Too Large
.- See Also:
-
URI_TOO_LONG
414 URI Too Long
.- See Also:
-
UNSUPPORTED_MEDIA_TYPE
415 Unsupported Media Type
.- See Also:
-
REQUESTED_RANGE_NOT_SATISFIABLE
416 Requested Range Not Satisfiable
.- See Also:
-
EXPECTATION_FAILED
417 Expectation Failed
.- See Also:
-
I_AM_A_TEAPOT
418 I'm a teapot
.- See Also:
-
UNPROCESSABLE_ENTITY
422 Unprocessable Entity
.- See Also:
-
LOCKED
423 Locked
.- See Also:
-
FAILED_DEPENDENCY
424 Failed Dependency
.- See Also:
-
TOO_EARLY
425 Too Early
.- See Also:
-
UPGRADE_REQUIRED
426 Upgrade Required
.- See Also:
-
PRECONDITION_REQUIRED
428 Precondition Required
.- See Also:
-
TOO_MANY_REQUESTS
429 Too Many Requests
.- See Also:
-
REQUEST_HEADER_FIELDS_TOO_LARGE
431 Request Header Fields Too Large
.- See Also:
-
UNAVAILABLE_FOR_LEGAL_REASONS
451 Unavailable For Legal Reasons
.- See Also:
-
INTERNAL_SERVER_ERROR
500 Internal Server Error
.- See Also:
-
NOT_IMPLEMENTED
501 Not Implemented
.- See Also:
-
BAD_GATEWAY
502 Bad Gateway
.- See Also:
-
SERVICE_UNAVAILABLE
503 Service Unavailable
.- See Also:
-
GATEWAY_TIMEOUT
504 Gateway Timeout
.- See Also:
-
HTTP_VERSION_NOT_SUPPORTED
505 HTTP Version Not Supported
.- See Also:
-
VARIANT_ALSO_NEGOTIATES
506 Variant Also Negotiates
- See Also:
-
INSUFFICIENT_STORAGE
507 Insufficient Storage
- See Also:
-
LOOP_DETECTED
508 Loop Detected
- See Also:
-
BANDWIDTH_LIMIT_EXCEEDED
509 Bandwidth Limit Exceeded
-
NOT_EXTENDED
510 Not Extended
- See Also:
-
NETWORK_AUTHENTICATION_REQUIRED
511 Network Authentication Required
.- See Also:
-
-
Field Details
-
value
private final int value -
series
-
reasonPhrase
-
-
Constructor Details
-
HttpStatus
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getValue
public int getValue() -
getSeries
-
getReasonPhrase
-