Enum HttpStatus

java.lang.Object
java.lang.Enum<HttpStatus>
org.apache.dubbo.remoting.http12.HttpStatus
All Implemented Interfaces:
Serializable, Comparable<HttpStatus>, java.lang.constant.Constable

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

    • OK

      public static final HttpStatus OK
    • CREATED

      public static final HttpStatus CREATED
    • ACCEPTED

      public static final HttpStatus ACCEPTED
    • NO_CONTENT

      public static final HttpStatus NO_CONTENT
    • MOVED_PERMANENTLY

      public static final HttpStatus MOVED_PERMANENTLY
    • FOUND

      public static final HttpStatus FOUND
    • BAD_REQUEST

      public static final HttpStatus BAD_REQUEST
    • UNAUTHORIZED

      public static final HttpStatus UNAUTHORIZED
    • FORBIDDEN

      public static final HttpStatus FORBIDDEN
    • NOT_FOUND

      public static final HttpStatus NOT_FOUND
    • METHOD_NOT_ALLOWED

      public static final HttpStatus METHOD_NOT_ALLOWED
    • REQUEST_TIMEOUT

      public static final HttpStatus REQUEST_TIMEOUT
    • CONFLICT

      public static final HttpStatus CONFLICT
    • UNSUPPORTED_MEDIA_TYPE

      public static final HttpStatus UNSUPPORTED_MEDIA_TYPE
    • INTERNAL_SERVER_ERROR

      public static final HttpStatus INTERNAL_SERVER_ERROR
  • Method Details

    • values

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

      public int getCode()
    • getStatusString

      public String getStatusString()