Enum Class HttpStatus

java.lang.Object
java.lang.Enum<HttpStatus>
com.snowflake.ingest.streaming.HttpStatus
All Implemented Interfaces:
Serializable, Comparable<HttpStatus>, Constable

public enum HttpStatus extends Enum<HttpStatus>
HTTP status codes used by Java layer with their canonical names.
  • Enum Constant Details

    • BAD_REQUEST

      public static final HttpStatus BAD_REQUEST
    • UNAUTHORIZED

      public static final HttpStatus UNAUTHORIZED
    • NOT_FOUND

      public static final HttpStatus NOT_FOUND
    • TOO_MANY_REQUESTS

      public static final HttpStatus TOO_MANY_REQUESTS
    • GONE

      public static final HttpStatus GONE
    • CONFLICT

      public static final HttpStatus CONFLICT
    • 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 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
    • getCode

      public int getCode()
    • getName

      public String getName()