Enum Class HttpStatus

java.lang.Object
java.lang.Enum<HttpStatus>
com.github.charlemaznable.httpclient.common.HttpStatus
所有已实现的接口:
Serializable, Comparable<HttpStatus>, Constable

public enum HttpStatus extends Enum<HttpStatus>
  • 枚举常量详细资料

    • CONTINUE

      public static final HttpStatus CONTINUE
    • SWITCHING_PROTOCOLS

      public static final HttpStatus SWITCHING_PROTOCOLS
    • PROCESSING

      public static final HttpStatus PROCESSING
    • CHECKPOINT

      public static final HttpStatus CHECKPOINT
    • OK

      public static final HttpStatus OK
    • CREATED

      public static final HttpStatus CREATED
    • ACCEPTED

      public static final HttpStatus ACCEPTED
    • NON_AUTHORITATIVE_INFORMATION

      public static final HttpStatus NON_AUTHORITATIVE_INFORMATION
    • NO_CONTENT

      public static final HttpStatus NO_CONTENT
    • RESET_CONTENT

      public static final HttpStatus RESET_CONTENT
    • PARTIAL_CONTENT

      public static final HttpStatus PARTIAL_CONTENT
    • MULTI_STATUS

      public static final HttpStatus MULTI_STATUS
    • ALREADY_REPORTED

      public static final HttpStatus ALREADY_REPORTED
    • IM_USED

      public static final HttpStatus IM_USED
    • MULTIPLE_CHOICES

      public static final HttpStatus MULTIPLE_CHOICES
    • MOVED_PERMANENTLY

      public static final HttpStatus MOVED_PERMANENTLY
    • FOUND

      public static final HttpStatus FOUND
    • MOVED_TEMPORARILY

      @Deprecated public static final HttpStatus MOVED_TEMPORARILY
      已过时。
    • SEE_OTHER

      public static final HttpStatus SEE_OTHER
    • NOT_MODIFIED

      public static final HttpStatus NOT_MODIFIED
    • USE_PROXY

      @Deprecated public static final HttpStatus USE_PROXY
      已过时。
    • TEMPORARY_REDIRECT

      public static final HttpStatus TEMPORARY_REDIRECT
    • PERMANENT_REDIRECT

      public static final HttpStatus PERMANENT_REDIRECT
    • BAD_REQUEST

      public static final HttpStatus BAD_REQUEST
    • UNAUTHORIZED

      public static final HttpStatus UNAUTHORIZED
    • PAYMENT_REQUIRED

      public static final HttpStatus PAYMENT_REQUIRED
    • FORBIDDEN

      public static final HttpStatus FORBIDDEN
    • NOT_FOUND

      public static final HttpStatus NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final HttpStatus METHOD_NOT_ALLOWED
    • NOT_ACCEPTABLE

      public static final HttpStatus NOT_ACCEPTABLE
    • PROXY_AUTHENTICATION_REQUIRED

      public static final HttpStatus PROXY_AUTHENTICATION_REQUIRED
    • REQUEST_TIMEOUT

      public static final HttpStatus REQUEST_TIMEOUT
    • CONFLICT

      public static final HttpStatus CONFLICT
    • GONE

      public static final HttpStatus GONE
    • LENGTH_REQUIRED

      public static final HttpStatus LENGTH_REQUIRED
    • PRECONDITION_FAILED

      public static final HttpStatus PRECONDITION_FAILED
    • PAYLOAD_TOO_LARGE

      public static final HttpStatus PAYLOAD_TOO_LARGE
    • REQUEST_ENTITY_TOO_LARGE

      @Deprecated public static final HttpStatus REQUEST_ENTITY_TOO_LARGE
      已过时。
    • URI_TOO_LONG

      public static final HttpStatus URI_TOO_LONG
    • REQUEST_URI_TOO_LONG

      @Deprecated public static final HttpStatus REQUEST_URI_TOO_LONG
      已过时。
    • UNSUPPORTED_MEDIA_TYPE

      public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
    • REQUESTED_RANGE_NOT_SATISFIABLE

      public static final HttpStatus REQUESTED_RANGE_NOT_SATISFIABLE
    • EXPECTATION_FAILED

      public static final HttpStatus EXPECTATION_FAILED
    • I_AM_A_TEAPOT

      public static final HttpStatus I_AM_A_TEAPOT
    • INSUFFICIENT_SPACE_ON_RESOURCE

      @Deprecated public static final HttpStatus INSUFFICIENT_SPACE_ON_RESOURCE
      已过时。
    • METHOD_FAILURE

      @Deprecated public static final HttpStatus METHOD_FAILURE
      已过时。
    • DESTINATION_LOCKED

      @Deprecated public static final HttpStatus DESTINATION_LOCKED
      已过时。
    • UNPROCESSABLE_ENTITY

      public static final HttpStatus UNPROCESSABLE_ENTITY
    • LOCKED

      public static final HttpStatus LOCKED
    • FAILED_DEPENDENCY

      public static final HttpStatus FAILED_DEPENDENCY
    • TOO_EARLY

      public static final HttpStatus TOO_EARLY
    • UPGRADE_REQUIRED

      public static final HttpStatus UPGRADE_REQUIRED
    • PRECONDITION_REQUIRED

      public static final HttpStatus PRECONDITION_REQUIRED
    • TOO_MANY_REQUESTS

      public static final HttpStatus TOO_MANY_REQUESTS
    • REQUEST_HEADER_FIELDS_TOO_LARGE

      public static final HttpStatus REQUEST_HEADER_FIELDS_TOO_LARGE
    • INTERNAL_SERVER_ERROR

      public static final HttpStatus INTERNAL_SERVER_ERROR
    • NOT_IMPLEMENTED

      public static final HttpStatus NOT_IMPLEMENTED
    • BAD_GATEWAY

      public static final HttpStatus BAD_GATEWAY
    • SERVICE_UNAVAILABLE

      public static final HttpStatus SERVICE_UNAVAILABLE
    • GATEWAY_TIMEOUT

      public static final HttpStatus GATEWAY_TIMEOUT
    • HTTP_VERSION_NOT_SUPPORTED

      public static final HttpStatus HTTP_VERSION_NOT_SUPPORTED
    • VARIANT_ALSO_NEGOTIATES

      public static final HttpStatus VARIANT_ALSO_NEGOTIATES
    • INSUFFICIENT_STORAGE

      public static final HttpStatus INSUFFICIENT_STORAGE
    • LOOP_DETECTED

      public static final HttpStatus LOOP_DETECTED
    • BANDWIDTH_LIMIT_EXCEEDED

      public static final HttpStatus BANDWIDTH_LIMIT_EXCEEDED
    • NOT_EXTENDED

      public static final HttpStatus NOT_EXTENDED
    • NETWORK_AUTHENTICATION_REQUIRED

      public static final HttpStatus NETWORK_AUTHENTICATION_REQUIRED
  • 方法详细资料

    • values

      public static HttpStatus[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      返回:
      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.)
      参数:
      name - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • valueOf

      public static HttpStatus valueOf(int statusCode)
      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.)
      参数:
      statusCode - 要返回的枚举常量的名称。
      返回:
      返回带有指定名称的枚举常量
      抛出:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - 如果参数为空值
    • resolve

      @Nullable public static HttpStatus resolve(int statusCode)
    • value

      public int value()
    • getReasonPhrase

      public String getReasonPhrase()
    • series

      public HttpStatus.Series series()
    • is1xxInformational

      public boolean is1xxInformational()
    • is2xxSuccessful

      public boolean is2xxSuccessful()
    • is3xxRedirection

      public boolean is3xxRedirection()
    • is4xxClientError

      public boolean is4xxClientError()
    • is5xxServerError

      public boolean is5xxServerError()
    • isError

      public boolean isError()
    • toString

      public String toString()
      覆盖:
      toString 在类中 Enum<HttpStatus>