Package com.jk.web.embedded.spring
Enum Class HttpStatus
- All Implemented Interfaces:
Serializable
,Comparable<HttpStatus>
,Constable
The Enum HttpStatus.
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThe accepted.The already reported.The bad gateway.The bad request.The bandwidth limit exceeded.The checkpoint.The conflict.The continue.The created.Deprecated.The expectation failed.The failed dependency.The forbidden.The found.The gateway timeout.The gone.The http version not supported.The i am a teapot.The im used.Deprecated.The insufficient storage.The internal server error.The length required.The locked.The loop detected.Deprecated.The method not allowed.The moved permanently.Deprecated.The multi status.The multiple choices.The network authentication required.The no content.The non authoritative information.The not acceptable.The not extended.The not found.The not implemented.The not modified.The ok.The partial content.The payload too large.The payment required.The permanent redirect.The precondition failed.The precondition required.The processing.The proxy authentication required.Deprecated.The request header fields too large.The request timeout.Deprecated.The requested range not satisfiable.The reset content.The see other.The service unavailable.The switching protocols.The temporary redirect.The too many requests.The unauthorized.The unavailable for legal reasons.The unprocessable entity.The unsupported media type.The upgrade required.The uri too long.Deprecated.The variant also negotiates. -
Method Summary
Modifier and TypeMethodDescriptionGets the reason phrase.boolean
Checks if is 1 xx informational.boolean
Checks if is 2 xx successful.boolean
Checks if is 3 xx redirection.boolean
Checks if is 4 xx client error.boolean
Checks if is 5 xx server error.boolean
isError()
Checks if is error.static HttpStatus
resolve
(int statusCode) Resolve.series()
Series.toString()
To string.int
value()
Value.static HttpStatus
valueOf
(int statusCode) Value of.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
The continue. -
SWITCHING_PROTOCOLS
The switching protocols. -
PROCESSING
The processing. -
CHECKPOINT
The checkpoint. -
OK
The ok. -
CREATED
The created. -
ACCEPTED
The accepted. -
NON_AUTHORITATIVE_INFORMATION
The non authoritative information. -
NO_CONTENT
The no content. -
RESET_CONTENT
The reset content. -
PARTIAL_CONTENT
The partial content. -
MULTI_STATUS
The multi status. -
ALREADY_REPORTED
The already reported. -
IM_USED
The im used. -
MULTIPLE_CHOICES
The multiple choices. -
MOVED_PERMANENTLY
The moved permanently. -
FOUND
The found. -
MOVED_TEMPORARILY
Deprecated.The moved temporarily. -
SEE_OTHER
The see other. -
NOT_MODIFIED
The not modified. -
USE_PROXY
Deprecated.The use proxy. -
TEMPORARY_REDIRECT
The temporary redirect. -
PERMANENT_REDIRECT
The permanent redirect. -
BAD_REQUEST
The bad request. -
UNAUTHORIZED
The unauthorized. -
PAYMENT_REQUIRED
The payment required. -
FORBIDDEN
The forbidden. -
NOT_FOUND
The not found. -
METHOD_NOT_ALLOWED
The method not allowed. -
NOT_ACCEPTABLE
The not acceptable. -
PROXY_AUTHENTICATION_REQUIRED
The proxy authentication required. -
REQUEST_TIMEOUT
The request timeout. -
CONFLICT
The conflict. -
GONE
The gone. -
LENGTH_REQUIRED
The length required. -
PRECONDITION_FAILED
The precondition failed. -
PAYLOAD_TOO_LARGE
The payload too large. -
REQUEST_ENTITY_TOO_LARGE
Deprecated.The request entity too large. -
URI_TOO_LONG
The uri too long. -
REQUEST_URI_TOO_LONG
Deprecated.The request uri too long. -
UNSUPPORTED_MEDIA_TYPE
The unsupported media type. -
REQUESTED_RANGE_NOT_SATISFIABLE
The requested range not satisfiable. -
EXPECTATION_FAILED
The expectation failed. -
I_AM_A_TEAPOT
The i am a teapot. -
INSUFFICIENT_SPACE_ON_RESOURCE
Deprecated.The insufficient space on resource. -
METHOD_FAILURE
Deprecated.The method failure. -
DESTINATION_LOCKED
Deprecated.The destination locked. -
UNPROCESSABLE_ENTITY
The unprocessable entity. -
LOCKED
The locked. -
FAILED_DEPENDENCY
The failed dependency. -
UPGRADE_REQUIRED
The upgrade required. -
PRECONDITION_REQUIRED
The precondition required. -
TOO_MANY_REQUESTS
The too many requests. -
REQUEST_HEADER_FIELDS_TOO_LARGE
The request header fields too large. -
UNAVAILABLE_FOR_LEGAL_REASONS
The unavailable for legal reasons. -
INTERNAL_SERVER_ERROR
The internal server error. -
NOT_IMPLEMENTED
The not implemented. -
BAD_GATEWAY
The bad gateway. -
SERVICE_UNAVAILABLE
The service unavailable. -
GATEWAY_TIMEOUT
The gateway timeout. -
HTTP_VERSION_NOT_SUPPORTED
The http version not supported. -
VARIANT_ALSO_NEGOTIATES
The variant also negotiates. -
INSUFFICIENT_STORAGE
The insufficient storage. -
LOOP_DETECTED
The loop detected. -
BANDWIDTH_LIMIT_EXCEEDED
The bandwidth limit exceeded. -
NOT_EXTENDED
The not extended. -
NETWORK_AUTHENTICATION_REQUIRED
The network authentication required.
-
-
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
-
value
public int value()Value.- Returns:
- the int
-
getReasonPhrase
Gets the reason phrase.- Returns:
- the reason phrase
-
is1xxInformational
public boolean is1xxInformational()Checks if is 1 xx informational.- Returns:
- true, if is 1 xx informational
-
is2xxSuccessful
public boolean is2xxSuccessful()Checks if is 2 xx successful.- Returns:
- true, if is 2 xx successful
-
is3xxRedirection
public boolean is3xxRedirection()Checks if is 3 xx redirection.- Returns:
- true, if is 3 xx redirection
-
is4xxClientError
public boolean is4xxClientError()Checks if is 4 xx client error.- Returns:
- true, if is 4 xx client error
-
is5xxServerError
public boolean is5xxServerError()Checks if is 5 xx server error.- Returns:
- true, if is 5 xx server error
-
isError
public boolean isError()Checks if is error.- Returns:
- true, if is error
-
series
Series.- Returns:
- the series
-
toString
To string.- Overrides:
toString
in classEnum<HttpStatus>
- Returns:
- the string
-
valueOf
Value of.- Parameters:
statusCode
- the status code- Returns:
- the http status
-
resolve
Resolve.- Parameters:
statusCode
- the status code- Returns:
- the http status
-