public static enum Response.Status extends java.lang.Enum<Response.Status>
| Enum Constant and Description | 
|---|
BAD_REQUEST
400 Bad Request response 
 | 
FORBIDDEN
403 Forbidden response 
 | 
INTERNAL_SERVER_ERROR
500 Internal Server Error response 
 | 
LOGIN_TIMEOUT
440 Login Timeout response, Microsoft/Outlook extension. 
 | 
NO_CONTENT
204 No Content 
 | 
NOT_FOUND
404 Not Found response 
 | 
OK
200 OK response 
 | 
SERVICE_UNAVAILABLE
503 Service Unavailable response 
 | 
UNAUTHORIZED
401 Unauthorized response 
 | 
| Modifier and Type | Method and Description | 
|---|---|
static Response.Status | 
fromStatusCode(int code)  | 
int | 
toStatusCode()
convert to HTTP status code 
 | 
static Response.Status | 
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. 
 | 
static Response.Status[] | 
values()
Returns an array containing the constants of this enum type, in
the order they are declared. 
 | 
public static final Response.Status OK
public static final Response.Status NO_CONTENT
public static final Response.Status BAD_REQUEST
public static final Response.Status UNAUTHORIZED
public static final Response.Status FORBIDDEN
public static final Response.Status NOT_FOUND
public static final Response.Status LOGIN_TIMEOUT
public static final Response.Status INTERNAL_SERVER_ERROR
public static final Response.Status SERVICE_UNAVAILABLE
public static Response.Status[] values()
for (Response.Status c : Response.Status.values()) System.out.println(c);
public static Response.Status 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 int toStatusCode()
public static Response.Status fromStatusCode(int code)
code - Copyright © 2015 Tampere University of Technology, Pori Department.