public enum StatusCode extends java.lang.Enum<StatusCode>
| Enum Constant and Description | 
|---|
| ACCEPTED | 
| BAD_GATEWAY | 
| BAD_REQUEST | 
| CONFLICT | 
| CREATED | 
| DATA_FINISHED | 
| FINISHED | 
| FORBIDDEN | 
| INTERNAL_SERVER_ERROR | 
| METHOD_NOT_ALLOWED | 
| NO_CONTENT | 
| NON_AUTHORITATIVE_INFORMATION | 
| NOT_ACCEPTABLE | 
| NOT_FOUND | 
| NOT_IMPLEMENTED | 
| OK | 
| OTHER | 
| PAYMENT_REQUIRED | 
| REQUEST_TIMEOUT | 
| SERVICE_UNAVAILABLE | 
| UNAUTHORIZED | 
| Modifier and Type | Method and Description | 
|---|---|
| int | getCode()Returns HTTP status code. | 
| java.lang.String | getDescription()Returns text description of HTTP status. | 
| java.lang.String | toString()Return information about StatusCode in format: Http (code) (description). | 
| static StatusCode | valueOf(int code)Returns instance of StatusCode for given code. | 
| static StatusCode | valueOf(java.lang.String name)Returns the enum constant of this type with the specified name. | 
| static StatusCode[] | values()Returns an array containing the constants of this enum type, in
the order they are declared. | 
public static final StatusCode OK
public static final StatusCode CREATED
public static final StatusCode ACCEPTED
public static final StatusCode NON_AUTHORITATIVE_INFORMATION
public static final StatusCode NO_CONTENT
public static final StatusCode FINISHED
public static final StatusCode DATA_FINISHED
public static final StatusCode BAD_REQUEST
public static final StatusCode UNAUTHORIZED
public static final StatusCode PAYMENT_REQUIRED
public static final StatusCode FORBIDDEN
public static final StatusCode NOT_FOUND
public static final StatusCode METHOD_NOT_ALLOWED
public static final StatusCode NOT_ACCEPTABLE
public static final StatusCode REQUEST_TIMEOUT
public static final StatusCode CONFLICT
public static final StatusCode INTERNAL_SERVER_ERROR
public static final StatusCode NOT_IMPLEMENTED
public static final StatusCode BAD_GATEWAY
public static final StatusCode SERVICE_UNAVAILABLE
public static final StatusCode OTHER
public static StatusCode[] values()
for (StatusCode c : StatusCode.values()) System.out.println(c);
public static StatusCode 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 getCode()
public java.lang.String getDescription()
public java.lang.String toString()
toString in class java.lang.Enum<StatusCode>public static StatusCode valueOf(int code)
OTHER.code - status code to lookup