- All Implemented Interfaces:
Serializable
,Comparable<StatusLine.StatusCode>
,Constable
- Enclosing class:
StatusLine
See Status Codes
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionUsed a lot after receiving a post response.The null object, meant to represent "no status code" -
Field Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic StatusLine.StatusCode
Returns the enum constant of this class with the specified name.static StatusLine.StatusCode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
CODE_100_CONTINUE
-
CODE_101_SWITCHING_PROTOCOLS
-
CODE_102_PROCESSING
-
CODE_103_EARLY_HINTS
-
CODE_200_OK
-
CODE_201_CREATED
-
CODE_202_ACCEPTED
-
CODE_203_NON_AUTHORITATIVE_INFORMATION
-
CODE_204_NO_CONTENT
-
CODE_205_RESET_CONTENT
-
CODE_206_PARTIAL_CONTENT
-
CODE_207_MULTI_STATUS
-
CODE_208_ALREADY_REPORTED
-
CODE_226_IM_USED
-
CODE_300_MULTIPLE_CHOICES
-
CODE_301_MOVED_PERMANENTLY
-
CODE_302_FOUND
-
CODE_303_SEE_OTHER
Used a lot after receiving a post response. The pattern is to receive the post, then redirect to a new page. See ... -
CODE_304_NOT_MODIFIED
-
CODE_305_USE_PROXY
-
CODE_306_UNUSED
-
CODE_307_TEMPORARY_REDIRECT
-
CODE_308_PERMANENT_REDIRECT
-
CODE_400_BAD_REQUEST
-
CODE_401_UNAUTHORIZED
-
CODE_402_PAYMENT_REQUIRED
-
CODE_403_FORBIDDEN
-
CODE_404_NOT_FOUND
-
CODE_405_METHOD_NOT_ALLOWED
-
CODE_406_NOT_ACCEPTABLE
-
CODE_407_PROXY_AUTHENTICATION_REQUIRED
-
CODE_408_REQUEST_TIMEOUT
-
CODE_409_CONFLICT
-
CODE_410_GONE
-
CODE_411_LENGTH_REQUIRED
-
CODE_412_PRECONDITION_FAILED
-
CODE_413_PAYLOAD_TOO_LARGE
-
CODE_414_URI_TOO_LONG
-
CODE_415_UNSUPPORTED_MEDIA_TYPE
-
CODE_416_RANGE_NOT_SATISFIABLE
-
CODE_417_EXPECTATION_FAILED
-
CODE_418_IM_A_TEAPOT
-
CODE_421_MISDIRECTED_REQUEST
-
CODE_422_UNPROCESSABLE_CONTENT
-
CODE_423_LOCKED
-
CODE_424_FAILED_DEPENDENCY
-
CODE_425_TOO_EARLY
-
CODE_426_UPGRADE_REQUIRED
-
CODE_428_PRECONDITION_REQUIRED
-
CODE_429_TOO_MANY_REQUESTS
-
CODE_431_REQUEST_HEADER_FIELDS_TOO_LARGE
-
CODE_451_UNAVAILABLE_FOR_LEGAL_REASONS
-
CODE_500_INTERNAL_SERVER_ERROR
-
CODE_501_NOT_IMPLEMENTED
-
CODE_502_BAD_GATEWAY
-
CODE_503_SERVICE_UNAVAILABLE
-
CODE_504_GATEWAY_TIMEOUT
-
CODE_505_HTTP_VERSION_NOT_SUPPORTED
-
CODE_506_VARIANT_ALSO_NEGOTIATES
-
CODE_507_INSUFFICIENT_STORAGE
-
CODE_508_LOOP_DETECTED
-
CODE_510_NOT_EXTENDED
-
CODE_511_NETWORK_AUTHENTICATION_REQUIRED
-
NULL
The null object, meant to represent "no status code"
-
-
Field Details
-
code
public final int code -
shortDescription
-
-
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
-