Interface Response.StatusType

All Known Implementing Classes:
Response.Status
Enclosing class:
Response

public static interface Response.StatusType
Base interface for statuses used in responses.
Since:
1.1
  • Method Details

    • getStatusCode

      int getStatusCode()
      Get the associated status code.
      Returns:
      the status code.
    • getFamily

      Get the class of status code.
      Returns:
      the class of status code.
    • getReasonPhrase

      String getReasonPhrase()
      Get the reason phrase.
      Returns:
      the reason phrase.
    • toEnum

      default Response.Status toEnum()
      Get the this Status Type as a Response.Status.

      Please note that returned status contains only a status code, the reason phrase is set to default one (corresponding to the status code).

      Returns:
      Response.Status representing this status type.
      Since:
      2.1