public enum HttpStatusCode extends java.lang.Enum<HttpStatusCode>
Enum Constant and Description |
---|
ALREADY_EXISTS
code: 470, description: Already exists
|
BAD_REQUEST
code: 400, description: Bad Request
|
FORBIDDEN
code: 403, description: Forbidden
|
INCORRECT_PASS
code: 472, description: Incorrect Password
|
INTERNAL_SERVER_ERROR
code: 500, description: Internal Server Error
|
NO_CONTENT
code: 204, description: No Content
|
NOT_EXISTS
code: 471, description: Not exists
|
OK
code: 200, description: OK
|
REQUEST_TIMEOUT
code: 408, description: Request Timeout
|
SERVICE_UNAVAILABLE
code: 503, description: Service Unavailable
|
Modifier and Type | Method and Description |
---|---|
<T> EntityCollectionResponse<T> |
getEntityCollectionResponse() |
<T> EntityCollectionResponse<T> |
getEntityCollectionResponse(com.google.api.server.spi.response.CollectionResponse collectionResponse) |
<T> EntityCollectionResponse<T> |
getEntityCollectionResponse(java.util.List<T> list) |
DefaultResponse |
getResponse() |
<T> EntityResponse<T> |
getResponse(T item) |
<T> EntityResponse<T> |
getResponse(T item,
java.lang.String message) |
static HttpStatusCode |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpStatusCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpStatusCode OK
public static final HttpStatusCode NO_CONTENT
public static final HttpStatusCode BAD_REQUEST
public static final HttpStatusCode FORBIDDEN
public static final HttpStatusCode REQUEST_TIMEOUT
public static final HttpStatusCode ALREADY_EXISTS
public static final HttpStatusCode NOT_EXISTS
public static final HttpStatusCode INCORRECT_PASS
public static final HttpStatusCode INTERNAL_SERVER_ERROR
public static final HttpStatusCode SERVICE_UNAVAILABLE
public static HttpStatusCode[] values()
for (HttpStatusCode c : HttpStatusCode.values()) System.out.println(c);
public static HttpStatusCode valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic DefaultResponse getResponse()
public <T> EntityResponse<T> getResponse(T item)
public <T> EntityResponse<T> getResponse(T item, java.lang.String message)
public <T> EntityCollectionResponse<T> getEntityCollectionResponse(com.google.api.server.spi.response.CollectionResponse collectionResponse)
public <T> EntityCollectionResponse<T> getEntityCollectionResponse(java.util.List<T> list)
public <T> EntityCollectionResponse<T> getEntityCollectionResponse()