public enum ProxyStatusError extends Enum<ProxyStatusError>
error values of the Proxy-Status response field as defined by
RFC 9209. The constants correspond to the initial contents of the IANA "HTTP Proxy-Status
Error Types" registry.
The error parameter may also carry unregistered extension tokens, which this
enumeration does not model. fromToken(String) returns null for such tokens,
leaving the raw value available through ProxyStatus.getErrorToken().
| Modifier and Type | Method and Description |
|---|---|
static ProxyStatusError |
fromToken(String token)
Returns the standardized error matching the given token, or
null when the token is
null or not one of the values registered by RFC 9209. |
String |
getToken()
Returns the lowercase token used on the wire for this error.
|
static ProxyStatusError |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static ProxyStatusError[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final ProxyStatusError DNS_TIMEOUT
public static final ProxyStatusError DNS_ERROR
public static final ProxyStatusError DESTINATION_NOT_FOUND
public static final ProxyStatusError DESTINATION_UNAVAILABLE
public static final ProxyStatusError DESTINATION_IP_PROHIBITED
public static final ProxyStatusError DESTINATION_IP_UNROUTABLE
public static final ProxyStatusError CONNECTION_REFUSED
public static final ProxyStatusError CONNECTION_TERMINATED
public static final ProxyStatusError CONNECTION_TIMEOUT
public static final ProxyStatusError CONNECTION_READ_TIMEOUT
public static final ProxyStatusError CONNECTION_WRITE_TIMEOUT
public static final ProxyStatusError CONNECTION_LIMIT_REACHED
public static final ProxyStatusError TLS_PROTOCOL_ERROR
public static final ProxyStatusError TLS_CERTIFICATE_ERROR
public static final ProxyStatusError TLS_ALERT_RECEIVED
public static final ProxyStatusError HTTP_REQUEST_ERROR
public static final ProxyStatusError HTTP_REQUEST_DENIED
public static final ProxyStatusError HTTP_RESPONSE_INCOMPLETE
public static final ProxyStatusError HTTP_RESPONSE_HEADER_SECTION_SIZE
public static final ProxyStatusError HTTP_RESPONSE_HEADER_SIZE
public static final ProxyStatusError HTTP_RESPONSE_BODY_SIZE
public static final ProxyStatusError HTTP_RESPONSE_TRAILER_SECTION_SIZE
public static final ProxyStatusError HTTP_RESPONSE_TRAILER_SIZE
public static final ProxyStatusError HTTP_RESPONSE_TRANSFER_CODING
public static final ProxyStatusError HTTP_RESPONSE_CONTENT_CODING
public static final ProxyStatusError HTTP_RESPONSE_TIMEOUT
public static final ProxyStatusError HTTP_UPGRADE_FAILED
public static final ProxyStatusError HTTP_PROTOCOL_ERROR
public static final ProxyStatusError PROXY_INTERNAL_RESPONSE
public static final ProxyStatusError PROXY_INTERNAL_ERROR
public static final ProxyStatusError PROXY_CONFIGURATION_ERROR
public static final ProxyStatusError PROXY_LOOP_DETECTED
public static ProxyStatusError[] values()
for (ProxyStatusError c : ProxyStatusError.values()) System.out.println(c);
public static ProxyStatusError valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic String getToken()
public static ProxyStatusError fromToken(String token)
null when the token is
null or not one of the values registered by RFC 9209.Copyright © 1999–2021 The Apache Software Foundation. All rights reserved.