Enum Class HttpStatus

java.lang.Object
java.lang.Enum<HttpStatus>
com.jk.web.embedded.spring.HttpStatus
All Implemented Interfaces:
Serializable, Comparable<HttpStatus>, Constable

public enum HttpStatus extends Enum<HttpStatus>
The Enum HttpStatus.
  • Enum Constant Details

    • CONTINUE

      public static final HttpStatus CONTINUE
      The continue.
    • SWITCHING_PROTOCOLS

      public static final HttpStatus SWITCHING_PROTOCOLS
      The switching protocols.
    • PROCESSING

      public static final HttpStatus PROCESSING
      The processing.
    • CHECKPOINT

      public static final HttpStatus CHECKPOINT
      The checkpoint.
    • OK

      public static final HttpStatus OK
      The ok.
    • CREATED

      public static final HttpStatus CREATED
      The created.
    • ACCEPTED

      public static final HttpStatus ACCEPTED
      The accepted.
    • NON_AUTHORITATIVE_INFORMATION

      public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
      The non authoritative information.
    • NO_CONTENT

      public static final HttpStatus NO_CONTENT
      The no content.
    • RESET_CONTENT

      public static final HttpStatus RESET_CONTENT
      The reset content.
    • PARTIAL_CONTENT

      public static final HttpStatus PARTIAL_CONTENT
      The partial content.
    • MULTI_STATUS

      public static final HttpStatus MULTI_STATUS
      The multi status.
    • ALREADY_REPORTED

      public static final HttpStatus ALREADY_REPORTED
      The already reported.
    • IM_USED

      public static final HttpStatus IM_USED
      The im used.
    • MULTIPLE_CHOICES

      public static final HttpStatus MULTIPLE_CHOICES
      The multiple choices.
    • MOVED_PERMANENTLY

      public static final HttpStatus MOVED_PERMANENTLY
      The moved permanently.
    • FOUND

      public static final HttpStatus FOUND
      The found.
    • MOVED_TEMPORARILY

      @Deprecated public static final HttpStatus MOVED_TEMPORARILY
      Deprecated.
      The moved temporarily.
    • SEE_OTHER

      public static final HttpStatus SEE_OTHER
      The see other.
    • NOT_MODIFIED

      public static final HttpStatus NOT_MODIFIED
      The not modified.
    • USE_PROXY

      @Deprecated public static final HttpStatus USE_PROXY
      Deprecated.
      The use proxy.
    • TEMPORARY_REDIRECT

      public static final HttpStatus TEMPORARY_REDIRECT
      The temporary redirect.
    • PERMANENT_REDIRECT

      public static final HttpStatus PERMANENT_REDIRECT
      The permanent redirect.
    • BAD_REQUEST

      public static final HttpStatus BAD_REQUEST
      The bad request.
    • UNAUTHORIZED

      public static final HttpStatus UNAUTHORIZED
      The unauthorized.
    • PAYMENT_REQUIRED

      public static final HttpStatus PAYMENT_REQUIRED
      The payment required.
    • FORBIDDEN

      public static final HttpStatus FORBIDDEN
      The forbidden.
    • NOT_FOUND

      public static final HttpStatus NOT_FOUND
      The not found.
    • METHOD_NOT_ALLOWED

      public static final HttpStatus METHOD_NOT_ALLOWED
      The method not allowed.
    • NOT_ACCEPTABLE

      public static final HttpStatus NOT_ACCEPTABLE
      The not acceptable.
    • PROXY_AUTHENTICATION_REQUIRED

      public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
      The proxy authentication required.
    • REQUEST_TIMEOUT

      public static final HttpStatus REQUEST_TIMEOUT
      The request timeout.
    • CONFLICT

      public static final HttpStatus CONFLICT
      The conflict.
    • GONE

      public static final HttpStatus GONE
      The gone.
    • LENGTH_REQUIRED

      public static final HttpStatus LENGTH_REQUIRED
      The length required.
    • PRECONDITION_FAILED

      public static final HttpStatus PRECONDITION_FAILED
      The precondition failed.
    • PAYLOAD_TOO_LARGE

      public static final HttpStatus PAYLOAD_TOO_LARGE
      The payload too large.
    • REQUEST_ENTITY_TOO_LARGE

      @Deprecated public static final HttpStatus REQUEST_ENTITY_TOO_LARGE
      Deprecated.
      The request entity too large.
    • URI_TOO_LONG

      public static final HttpStatus URI_TOO_LONG
      The uri too long.
    • REQUEST_URI_TOO_LONG

      @Deprecated public static final HttpStatus REQUEST_URI_TOO_LONG
      Deprecated.
      The request uri too long.
    • UNSUPPORTED_MEDIA_TYPE

      public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
      The unsupported media type.
    • REQUESTED_RANGE_NOT_SATISFIABLE

      public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
      The requested range not satisfiable.
    • EXPECTATION_FAILED

      public static final HttpStatus EXPECTATION_FAILED
      The expectation failed.
    • I_AM_A_TEAPOT

      public static final HttpStatus I_AM_A_TEAPOT
      The i am a teapot.
    • INSUFFICIENT_SPACE_ON_RESOURCE

      @Deprecated public static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE
      Deprecated.
      The insufficient space on resource.
    • METHOD_FAILURE

      @Deprecated public static final HttpStatus METHOD_FAILURE
      Deprecated.
      The method failure.
    • DESTINATION_LOCKED

      @Deprecated public static final HttpStatus DESTINATION_LOCKED
      Deprecated.
      The destination locked.
    • UNPROCESSABLE_ENTITY

      public static final HttpStatus UNPROCESSABLE_ENTITY
      The unprocessable entity.
    • LOCKED

      public static final HttpStatus LOCKED
      The locked.
    • FAILED_DEPENDENCY

      public static final HttpStatus FAILED_DEPENDENCY
      The failed dependency.
    • UPGRADE_REQUIRED

      public static final HttpStatus UPGRADE_REQUIRED
      The upgrade required.
    • PRECONDITION_REQUIRED

      public static final HttpStatus PRECONDITION_REQUIRED
      The precondition required.
    • TOO_MANY_REQUESTS

      public static final HttpStatus TOO_MANY_REQUESTS
      The too many requests.
    • REQUEST_HEADER_FIELDS_TOO_LARGE

      public static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE
      The request header fields too large.
    • INTERNAL_SERVER_ERROR

      public static final HttpStatus INTERNAL_SERVER_ERROR
      The internal server error.
    • NOT_IMPLEMENTED

      public static final HttpStatus NOT_IMPLEMENTED
      The not implemented.
    • BAD_GATEWAY

      public static final HttpStatus BAD_GATEWAY
      The bad gateway.
    • SERVICE_UNAVAILABLE

      public static final HttpStatus SERVICE_UNAVAILABLE
      The service unavailable.
    • GATEWAY_TIMEOUT

      public static final HttpStatus GATEWAY_TIMEOUT
      The gateway timeout.
    • HTTP_VERSION_NOT_SUPPORTED

      public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
      The http version not supported.
    • VARIANT_ALSO_NEGOTIATES

      public static final HttpStatus VARIANT_ALSO_NEGOTIATES
      The variant also negotiates.
    • INSUFFICIENT_STORAGE

      public static final HttpStatus INSUFFICIENT_STORAGE
      The insufficient storage.
    • LOOP_DETECTED

      public static final HttpStatus LOOP_DETECTED
      The loop detected.
    • BANDWIDTH_LIMIT_EXCEEDED

      public static final HttpStatus BANDWIDTH_LIMIT_EXCEEDED
      The bandwidth limit exceeded.
    • NOT_EXTENDED

      public static final HttpStatus NOT_EXTENDED
      The not extended.
    • NETWORK_AUTHENTICATION_REQUIRED

      public static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
      The network authentication required.
  • Method Details

    • values

      public static HttpStatus[] 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

      public static HttpStatus valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • value

      public int value()
      Value.
      Returns:
      the int
    • getReasonPhrase

      public String 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

      public HttpStatus.Series series()
      Series.
      Returns:
      the series
    • toString

      public String toString()
      To string.
      Overrides:
      toString in class Enum<HttpStatus>
      Returns:
      the string
    • valueOf

      public static HttpStatus valueOf(int statusCode)
      Value of.
      Parameters:
      statusCode - the status code
      Returns:
      the http status
    • resolve

      @Nullable public static HttpStatus resolve(int statusCode)
      Resolve.
      Parameters:
      statusCode - the status code
      Returns:
      the http status