Enum HttpStatusCode

java.lang.Object
java.lang.Enum<HttpStatusCode>
com.dlsc.gemsfx.util.HttpStatusCode
All Implemented Interfaces:
Serializable, Comparable<HttpStatusCode>

public enum HttpStatusCode extends Enum<HttpStatusCode>
  • Enum Constant Details

    • OK

      public static final HttpStatusCode OK
    • CREATED

      public static final HttpStatusCode CREATED
    • ACCEPTED

      public static final HttpStatusCode ACCEPTED
    • NO_CONTENT

      public static final HttpStatusCode NO_CONTENT
    • RESET_CONTENT

      public static final HttpStatusCode RESET_CONTENT
    • PARTIAL_CONTENT

      public static final HttpStatusCode PARTIAL_CONTENT
    • MOVED_PERMANENTLY

      public static final HttpStatusCode MOVED_PERMANENTLY
    • FOUND

      public static final HttpStatusCode FOUND
    • SEE_OTHER

      public static final HttpStatusCode SEE_OTHER
    • NOT_MODIFIED

      public static final HttpStatusCode NOT_MODIFIED
    • USE_PROXY

      public static final HttpStatusCode USE_PROXY
    • TEMPORARY_REDIRECT

      public static final HttpStatusCode TEMPORARY_REDIRECT
    • BAD_REQUEST

      public static final HttpStatusCode BAD_REQUEST
    • UNAUTHORIZED

      public static final HttpStatusCode UNAUTHORIZED
    • PAYMENT_REQUIRED

      public static final HttpStatusCode PAYMENT_REQUIRED
    • FORBIDDEN

      public static final HttpStatusCode FORBIDDEN
    • NOT_FOUND

      public static final HttpStatusCode NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final HttpStatusCode METHOD_NOT_ALLOWED
    • NOT_ACCEPTABLE

      public static final HttpStatusCode NOT_ACCEPTABLE
    • PROXY_AUTHENTICATION_REQUIRED

      public static final HttpStatusCode PROXY_AUTHENTICATION_REQUIRED
    • REQUEST_TIMEOUT

      public static final HttpStatusCode REQUEST_TIMEOUT
    • CONFLICT

      public static final HttpStatusCode CONFLICT
    • GONE

      public static final HttpStatusCode GONE
    • LENGTH_REQUIRED

      public static final HttpStatusCode LENGTH_REQUIRED
    • PRECONDITION_FAILED

      public static final HttpStatusCode PRECONDITION_FAILED
    • REQUEST_ENTITY_TOO_LARGE

      public static final HttpStatusCode REQUEST_ENTITY_TOO_LARGE
    • REQUEST_URI_TOO_LONG

      public static final HttpStatusCode REQUEST_URI_TOO_LONG
    • UNSUPPORTED_MEDIA_TYPE

      public static final HttpStatusCode UNSUPPORTED_MEDIA_TYPE
    • REQUESTED_RANGE_NOT_SATISFIABLE

      public static final HttpStatusCode REQUESTED_RANGE_NOT_SATISFIABLE
    • EXPECTATION_FAILED

      public static final HttpStatusCode EXPECTATION_FAILED
    • PRECONDITION_REQUIRED

      public static final HttpStatusCode PRECONDITION_REQUIRED
    • TOO_MANY_REQUESTS

      public static final HttpStatusCode TOO_MANY_REQUESTS
    • REQUEST_HEADER_FIELDS_TOO_LARGE

      public static final HttpStatusCode REQUEST_HEADER_FIELDS_TOO_LARGE
    • INTERNAL_SERVER_ERROR

      public static final HttpStatusCode INTERNAL_SERVER_ERROR
    • NOT_IMPLEMENTED

      public static final HttpStatusCode NOT_IMPLEMENTED
    • BAD_GATEWAY

      public static final HttpStatusCode BAD_GATEWAY
    • SERVICE_UNAVAILABLE

      public static final HttpStatusCode SERVICE_UNAVAILABLE
    • GATEWAY_TIMEOUT

      public static final HttpStatusCode GATEWAY_TIMEOUT
    • HTTP_VERSION_NOT_SUPPORTED

      public static final HttpStatusCode HTTP_VERSION_NOT_SUPPORTED
    • NETWORK_AUTHENTICATION_REQUIRED

      public static final HttpStatusCode NETWORK_AUTHENTICATION_REQUIRED
  • Method Details

    • values

      public static HttpStatusCode[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static HttpStatusCode valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getFamily

      public HttpStatusCode.Family getFamily()
    • getStatusCode

      public int getStatusCode()
    • getReasonPhrase

      public String getReasonPhrase()
    • toString

      public String toString()
      Overrides:
      toString in class Enum<HttpStatusCode>
    • fromStatusCode

      public static HttpStatusCode fromStatusCode(int statusCode)