Enum Class HttpResponse.StatusCode

java.lang.Object
java.lang.Enum<HttpResponse.StatusCode>
org.teleight.teleightbots.webhook.HttpResponse.StatusCode
All Implemented Interfaces:
Serializable, Comparable<HttpResponse.StatusCode>, Constable
Enclosing class:
HttpResponse

public static enum HttpResponse.StatusCode extends Enum<HttpResponse.StatusCode>
  • Enum Constant Details

  • Method Details

    • values

      public static HttpResponse.StatusCode[] 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 HttpResponse.StatusCode 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
    • getCode

      public int getCode()
      Gets the HTTP status code.
      Returns:
      the HTTP status code