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

    • OK

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

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

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

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

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

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

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

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

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

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

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

    • values

      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

      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

      public DefaultResponse getResponse()
    • getResponse

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

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

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

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

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

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

      public boolean equalsCode(int code)
    • equalsCode

      public boolean equalsCode(DefaultResponse defaultResponse)