public static enum HttpResponse.ErrorSource extends java.lang.Enum<HttpResponse.ErrorSource>
| Enum Constant and Description |
|---|
CLIENT
CLIENT: Status codes 4xx.
|
NONE
NONE: Any other status code.
|
SERVER
SERVER: Status codes 5xx and -1.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpResponse.ErrorSource |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static HttpResponse.ErrorSource[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpResponse.ErrorSource NONE
public static final HttpResponse.ErrorSource CLIENT
public static final HttpResponse.ErrorSource SERVER
public static HttpResponse.ErrorSource[] values()
for (HttpResponse.ErrorSource c : HttpResponse.ErrorSource.values()) System.out.println(c);
public static HttpResponse.ErrorSource 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 null