Enum Class HttpStatusCode

java.lang.Object
java.lang.Enum<HttpStatusCode>
com.maplander.backend.enums.net.HttpStatusCode
All Implemented Interfaces:
Serializable, Comparable<HttpStatusCode>, Constable

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

    • OK Link icon

      public static final HttpStatusCode OK
      code: 200, description: OK
    • NO_CONTENT Link icon

      public static final HttpStatusCode NO_CONTENT
      code: 204, description: No Content
    • BAD_REQUEST Link icon

      public static final HttpStatusCode BAD_REQUEST
      code: 400, description: Bad Request
    • FORBIDDEN Link icon

      public static final HttpStatusCode FORBIDDEN
      code: 403, description: Forbidden
    • REQUEST_TIMEOUT Link icon

      public static final HttpStatusCode REQUEST_TIMEOUT
      code: 408, description: Request Timeout
    • CONFLICT Link icon

      public static final HttpStatusCode CONFLICT
      code: 409, description: Conflict
    • ALREADY_EXISTS Link icon

      public static final HttpStatusCode ALREADY_EXISTS
      code: 470, description: Already exists
    • NOT_EXISTS Link icon

      public static final HttpStatusCode NOT_EXISTS
      code: 471, description: Not exists
    • INCORRECT_PASS Link icon

      public static final HttpStatusCode INCORRECT_PASS
      code: 472, description: Incorrect Password
    • INTERNAL_SERVER_ERROR Link icon

      public static final HttpStatusCode INTERNAL_SERVER_ERROR
      code: 500, description: Internal Server Error
    • SERVICE_UNAVAILABLE Link icon

      public static final HttpStatusCode SERVICE_UNAVAILABLE
      code: 503, description: Service Unavailable
  • Method Details Link icon

    • values Link icon

      public static HttpStatusCode[] 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 Link icon

      public static HttpStatusCode 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
    • getResponse Link icon

      public DefaultResponse getResponse()
    • getResponse Link icon

      public <T> EntityResponse<T> getResponse(T item)
    • getResponse Link icon

      public <T> EntityResponse<T> getResponse(T item, String message)
    • getEntityCollectionResponse Link icon

      public <T> EntityCollectionResponse<T> getEntityCollectionResponse(com.google.api.server.spi.response.CollectionResponse collectionResponse)
    • getEntityCollectionResponse Link icon

      public <T> EntityCollectionResponse<T> getEntityCollectionResponse(EntityCollectionResponse<T> collectionResponse)
    • getEntityCollectionResponse Link icon

      public <T> EntityCollectionResponse<T> getEntityCollectionResponse(List<T> list)
    • getEntityCollectionResponse Link icon

      public <T> EntityCollectionResponse<T> getEntityCollectionResponse()
    • equalsCode Link icon

      public boolean equalsCode(int code)
    • equalsCode Link icon

      public boolean equalsCode(DefaultResponse defaultResponse)