Enum Class NetError

java.lang.Object
java.lang.Enum<NetError>
com.teamdev.jxbrowser.net.NetError
All Implemented Interfaces:
Serializable, Comparable<NetError>, Constable

public enum NetError extends Enum<NetError>
The network error codes.
  • Enum Constant Details

    • UNKNOWN

      public static final NetError UNKNOWN
      The net error is unknown.
    • OK

      public static final NetError OK
      No error.
    • IO_PENDING

      public static final NetError IO_PENDING
      An asynchronous IO operation is not yet complete. This usually does not indicate a fatal error. Typically this error will be generated as a notification to wait for some external notification that the IO operation finally completed.
    • FAILED

      public static final NetError FAILED
      A generic failure occurred.
    • ABORTED

      public static final NetError ABORTED
      An operation was aborted (due to user action).
    • INVALID_ARGUMENT

      public static final NetError INVALID_ARGUMENT
      An argument to the function is incorrect.
    • INVALID_HANDLE

      public static final NetError INVALID_HANDLE
      The handle or file descriptor is invalid.
    • FILE_NOT_FOUND

      public static final NetError FILE_NOT_FOUND
      The file or directory cannot be found.
    • TIMED_OUT

      public static final NetError TIMED_OUT
      An operation timed out.
    • FILE_TOO_BIG

      public static final NetError FILE_TOO_BIG
      The file is too large.
    • UNEXPECTED

      public static final NetError UNEXPECTED
      An unexpected error. This may be caused by a programming mistake or an invalid assumption.
    • ACCESS_DENIED

      public static final NetError ACCESS_DENIED
      Permission to access a resource, other than the network, was denied.
    • NOT_IMPLEMENTED

      public static final NetError NOT_IMPLEMENTED
      The operation failed because of unimplemented functionality.
    • INSUFFICIENT_RESOURCES

      public static final NetError INSUFFICIENT_RESOURCES
      There were not enough resources to complete the operation.
    • OUT_OF_MEMORY

      public static final NetError OUT_OF_MEMORY
      Memory allocation failed.
    • UPLOAD_FILE_CHANGED

      public static final NetError UPLOAD_FILE_CHANGED
      The file upload failed because the file's modification time was different from the expectation.
    • SOCKET_NOT_CONNECTED

      public static final NetError SOCKET_NOT_CONNECTED
      The socket is not connected.
    • FILE_EXISTS

      public static final NetError FILE_EXISTS
      The file already exists.
    • FILE_PATH_TOO_LONG

      public static final NetError FILE_PATH_TOO_LONG
      The path or file name is too long.
    • FILE_NO_SPACE

      public static final NetError FILE_NO_SPACE
      Not enough room left on the disk.
    • FILE_VIRUS_INFECTED

      public static final NetError FILE_VIRUS_INFECTED
      The file has a virus.
    • BLOCKED_BY_CLIENT

      public static final NetError BLOCKED_BY_CLIENT
      The client chose to block the request.
    • NETWORK_CHANGED

      public static final NetError NETWORK_CHANGED
      The network changed.
    • BLOCKED_BY_ADMINISTRATOR

      public static final NetError BLOCKED_BY_ADMINISTRATOR
      The request was blocked by the URL block list configured by the domain administrator.
    • SOCKET_IS_CONNECTED

      public static final NetError SOCKET_IS_CONNECTED
      The socket is already connected.
    • UPLOAD_STREAM_REWIND_NOT_SUPPORTED

      public static final NetError UPLOAD_STREAM_REWIND_NOT_SUPPORTED
      The upload failed because the upload stream needed to be re-read, due to a retry or a redirect, but the upload stream does not support that operation.
    • CONTEXT_SHUT_DOWN

      public static final NetError CONTEXT_SHUT_DOWN
      The request failed because the URLRequestContext is shutting down, or has been shut down.
    • BLOCKED_BY_RESPONSE

      public static final NetError BLOCKED_BY_RESPONSE
      The request failed because the response was delivered along with requirements which are not met (X-Frame-Options and Content-Security-Policy ancestor checks and Cross-Origin-Resource-Policy for instance).
    • BLOCKED_BY_CSP

      public static final NetError BLOCKED_BY_CSP
      The request was blocked by a Content Security Policy.
    • BLOCKED_BY_ORB

      public static final NetError BLOCKED_BY_ORB
      The request was blocked by CORB or ORB.
    • NETWORK_ACCESS_REVOKED

      public static final NetError NETWORK_ACCESS_REVOKED
      The request was blocked because it originated from a frame that has disabled network access.
    • BLOCKED_BY_FINGERPRINTING_PROTECTION

      public static final NetError BLOCKED_BY_FINGERPRINTING_PROTECTION
      The request was blocked by fingerprinting protections.
    • BLOCKED_IN_INCOGNITO_BY_ADMINISTRATOR

      public static final NetError BLOCKED_IN_INCOGNITO_BY_ADMINISTRATOR
      The request was blocked by the Incognito Mode URL block list configured by the domain administrator.
    • CONNECTION_CLOSED

      public static final NetError CONNECTION_CLOSED
      A connection was closed (corresponding to a TCP FIN).
    • CONNECTION_RESET

      public static final NetError CONNECTION_RESET
      A connection was reset (corresponding to a TCP RST).
    • CONNECTION_REFUSED

      public static final NetError CONNECTION_REFUSED
      A connection attempt was refused.
    • CONNECTION_ABORTED

      public static final NetError CONNECTION_ABORTED
      A connection timed out as a result of not receiving an ACK for data sent. This can include a FIN packet that did not get ACK'd.
    • CONNECTION_FAILED

      public static final NetError CONNECTION_FAILED
      A connection attempt failed.
    • NAME_NOT_RESOLVED

      public static final NetError NAME_NOT_RESOLVED
      The host name could not be resolved.
    • INTERNET_DISCONNECTED

      public static final NetError INTERNET_DISCONNECTED
      The Internet connection has been lost.
    • SSL_PROTOCOL_ERROR

      public static final NetError SSL_PROTOCOL_ERROR
      An SSL protocol error occurred.
    • ADDRESS_INVALID

      public static final NetError ADDRESS_INVALID
      The IP address or port number is invalid (e.g., cannot connect to the IP address 0 or the port 0).
    • ADDRESS_UNREACHABLE

      public static final NetError ADDRESS_UNREACHABLE
      The IP address is unreachable. This usually means that there is no route to the specified host or network.
    • SSL_CLIENT_AUTH_CERT_NEEDED

      public static final NetError SSL_CLIENT_AUTH_CERT_NEEDED
      The server requested a client certificate for SSL client authentication.
    • TUNNEL_CONNECTION_FAILED

      public static final NetError TUNNEL_CONNECTION_FAILED
      A tunnel connection through the proxy could not be established. For more info see the comment on PROXY_UNABLE_TO_CONNECT_TO_DESTINATION.
    • SSL_VERSION_OR_CIPHER_MISMATCH

      public static final NetError SSL_VERSION_OR_CIPHER_MISMATCH
      The client and server do not support a common SSL protocol version or cipher suite.
    • SSL_RENEGOTIATION_REQUESTED

      public static final NetError SSL_RENEGOTIATION_REQUESTED
      The server requested a renegotiation (rehandshake).
    • PROXY_AUTH_UNSUPPORTED

      public static final NetError PROXY_AUTH_UNSUPPORTED
      The proxy requested authentication (for tunnel establishment) with an unsupported method.
    • BAD_SSL_CLIENT_AUTH_CERT

      public static final NetError BAD_SSL_CLIENT_AUTH_CERT
      The SSL handshake failed because of a bad or missing client certificate.
    • CONNECTION_TIMED_OUT

      public static final NetError CONNECTION_TIMED_OUT
      A connection attempt timed out.
    • HOST_RESOLVER_QUEUE_TOO_LARGE

      public static final NetError HOST_RESOLVER_QUEUE_TOO_LARGE
      There are too many pending DNS resolves, so a request in the queue was aborted.
    • SOCKS_CONNECTION_FAILED

      public static final NetError SOCKS_CONNECTION_FAILED
      Failed establishing a connection to the SOCKS proxy server for a target host.
    • SOCKS_CONNECTION_HOST_UNREACHABLE

      public static final NetError SOCKS_CONNECTION_HOST_UNREACHABLE
      The SOCKS proxy server failed establishing connection to the target host because that host is unreachable.
    • ALPN_NEGOTIATION_FAILED

      public static final NetError ALPN_NEGOTIATION_FAILED
      The request to negotiate an alternate protocol failed.
    • SSL_NO_RENEGOTIATION

      public static final NetError SSL_NO_RENEGOTIATION
      The peer sent an SSL no_renegotiation alert message.
    • WINSOCK_UNEXPECTED_WRITTEN_BYTES

      public static final NetError WINSOCK_UNEXPECTED_WRITTEN_BYTES
      Winsock sometimes reports more data written than passed. This is probably due to a broken LSP.
    • SSL_DECOMPRESSION_FAILURE_ALERT

      public static final NetError SSL_DECOMPRESSION_FAILURE_ALERT
      An SSL peer sent a fatal decompression_failure alert. This typically occurs when a peer selects DEFLATE compression in the mistaken belief that it supports it.
    • SSL_BAD_RECORD_MAC_ALERT

      public static final NetError SSL_BAD_RECORD_MAC_ALERT
      An SSL peer sent a fatal bad_record_mac alert. This has been observed from servers with buggy DEFLATE support.
    • PROXY_AUTH_REQUESTED

      public static final NetError PROXY_AUTH_REQUESTED
      The proxy requested authentication (for tunnel establishment).
    • PROXY_CONNECTION_FAILED

      public static final NetError PROXY_CONNECTION_FAILED
      Could not create a connection to the proxy server. An error occurred either in resolving its name, or in connecting a socket to it. Note that this does NOT include failures during the actual CONNECT method of an HTTP proxy.
    • MANDATORY_PROXY_CONFIGURATION_FAILED

      public static final NetError MANDATORY_PROXY_CONFIGURATION_FAILED
      A mandatory proxy configuration could not be used. Currently this means that a mandatory PAC script could not be fetched, parsed or executed.
    • PRECONNECT_MAX_SOCKET_LIMIT

      public static final NetError PRECONNECT_MAX_SOCKET_LIMIT
      The socket pool hit the maximum socket limit while preconnecting. Additional preconnects are not attempted.
    • SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED

      public static final NetError SSL_CLIENT_AUTH_PRIVATE_KEY_ACCESS_DENIED
      The permission to use the SSL client certificate's private key was denied.
    • SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY

      public static final NetError SSL_CLIENT_AUTH_CERT_NO_PRIVATE_KEY
      The SSL client certificate has no private key.
    • PROXY_CERTIFICATE_INVALID

      public static final NetError PROXY_CERTIFICATE_INVALID
      The certificate presented by the HTTPS Proxy was invalid.
    • NAME_RESOLUTION_FAILED

      public static final NetError NAME_RESOLUTION_FAILED
      An error occurred when trying to do a name resolution (DNS).
    • NETWORK_ACCESS_DENIED

      public static final NetError NETWORK_ACCESS_DENIED
      Permission to access the network was denied. This is used to distinguish errors that were most likely caused by a firewall from other access denied errors.

      See also ACCESS_DENIED.

    • TEMPORARILY_THROTTLED

      public static final NetError TEMPORARILY_THROTTLED
      The request throttler module cancelled this request to avoid DDOS.
    • SSL_CLIENT_AUTH_SIGNATURE_FAILED

      public static final NetError SSL_CLIENT_AUTH_SIGNATURE_FAILED
      The client could not sign the CertificateVerify data of an SSL client auth handshake with the client certificate's private key.

      Possible causes for this include the user implicitly or explicitly denying access to the private key, the private key may not be valid for signing, the key may be relying on a cached handle which is no longer valid, or the CSP does not allow arbitrary data to be signed.

    • MSG_TOO_BIG

      public static final NetError MSG_TOO_BIG
      The message was too large for the transport (for example, a UDP message which exceeds the size threshold).
    • WS_PROTOCOL_ERROR

      public static final NetError WS_PROTOCOL_ERROR
      WebSocket protocol error. Indicates that the connection is terminated due to a malformed frame or other protocol violation.
    • ADDRESS_IN_USE

      public static final NetError ADDRESS_IN_USE
      Returned when attempting to bind an address that is already in use.
    • SSL_PINNED_KEY_NOT_IN_CERT_CHAIN

      public static final NetError SSL_PINNED_KEY_NOT_IN_CERT_CHAIN
      The certificate did not match the built-in public key pins for the host name. The pins are set in net/http/transport_security_state.cc and require that one of a set of public keys exist on the path from the leaf to the root.
    • CLIENT_AUTH_CERT_TYPE_UNSUPPORTED

      public static final NetError CLIENT_AUTH_CERT_TYPE_UNSUPPORTED
      Server request for client certificate did not contain any supported types.
    • SSL_DECRYPT_ERROR_ALERT

      public static final NetError SSL_DECRYPT_ERROR_ALERT
      An SSL peer sent a fatal decrypt_error alert. This typically occurs when a peer could not correctly verify a signature (in CertificateVerify or ServerKeyExchange) or validate a Finished message.
    • WS_THROTTLE_QUEUE_TOO_LARGE

      public static final NetError WS_THROTTLE_QUEUE_TOO_LARGE
      There are too many pending WebSocketJob instances, so the new job was not pushed to the queue.
    • SSL_SERVER_CERT_CHANGED

      public static final NetError SSL_SERVER_CERT_CHANGED
      The SSL server certificate changed in a renegotiation.
    • SSL_UNRECOGNIZED_NAME_ALERT

      public static final NetError SSL_UNRECOGNIZED_NAME_ALERT
      The SSL server sent a fatal unrecognized_name alert.
    • SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR

      public static final NetError SOCKET_SET_RECEIVE_BUFFER_SIZE_ERROR
      Failed to set the socket's receive buffer size as requested.
    • SOCKET_SET_SEND_BUFFER_SIZE_ERROR

      public static final NetError SOCKET_SET_SEND_BUFFER_SIZE_ERROR
      Failed to set the socket's send buffer size as requested.
    • SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE

      public static final NetError SOCKET_RECEIVE_BUFFER_SIZE_UNCHANGEABLE
      Failed to set the socket's receive buffer size as requested, despite success return code from setsockopt.
    • SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE

      public static final NetError SOCKET_SEND_BUFFER_SIZE_UNCHANGEABLE
      Failed to set the socket's send buffer size as requested, despite success return code from setsockopt.
    • SSL_CLIENT_AUTH_CERT_BAD_FORMAT

      public static final NetError SSL_CLIENT_AUTH_CERT_BAD_FORMAT
      Failed to import a client certificate from the platform store into the SSL library.
    • ICANN_NAME_COLLISION

      public static final NetError ICANN_NAME_COLLISION
      Resolving a hostname to an IP address list included the IPv4 address 127.0.53.53. This is a special IP address which ICANN has recommended to indicate there was a name collision, and alert admins to a potential problem.
    • SSL_SERVER_CERT_BAD_FORMAT

      public static final NetError SSL_SERVER_CERT_BAD_FORMAT
      The SSL server presented a certificate which could not be decoded. This is not a certificate error code as no X509Certificate object is available. This error is fatal.
    • CT_STH_PARSING_FAILED

      public static final NetError CT_STH_PARSING_FAILED
      Certificate Transparency: Received a signed tree head that failed to parse.
    • CT_STH_INCOMPLETE

      public static final NetError CT_STH_INCOMPLETE
      Certificate Transparency: Received a signed tree head whose JSON parsing was OK but was missing some of the fields.
    • UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH

      public static final NetError UNABLE_TO_REUSE_CONNECTION_FOR_PROXY_AUTH
      The attempt to reuse a connection to send proxy auth credentials failed before the AuthController was used to generate credentials. The caller should reuse the controller with a new connection. This error is only used internally by the network stack.
    • CT_CONSISTENCY_PROOF_PARSING_FAILED

      public static final NetError CT_CONSISTENCY_PROOF_PARSING_FAILED
      Certificate Transparency: Failed to parse the received consistency proof.
    • SSL_OBSOLETE_CIPHER

      public static final NetError SSL_OBSOLETE_CIPHER
      The SSL server required an unsupported cipher suite that has since been removed. This error will temporarily be signaled on a fallback for one or two releases immediately following a cipher suite's removal, after which the fallback will be removed.
    • WS_UPGRADE

      public static final NetError WS_UPGRADE
      When a WebSocket handshake is done successfully and the connection has been upgraded, the URLRequest is cancelled with this error code.
    • READ_IF_READY_NOT_IMPLEMENTED

      public static final NetError READ_IF_READY_NOT_IMPLEMENTED
      Socket ReadIfReady support is not implemented. This error should not be user visible, because the normal Read() method is used as a fallback.
    • NO_BUFFER_SPACE

      public static final NetError NO_BUFFER_SPACE
      No socket buffer space is available.
    • SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS

      public static final NetError SSL_CLIENT_AUTH_NO_COMMON_ALGORITHMS
      There were no common signature algorithms between the client certificate's private key and the server's preferences.
    • EARLY_DATA_REJECTED

      public static final NetError EARLY_DATA_REJECTED
      TLS 1.3 early data was rejected by the server. This will be received before any data is returned from the socket. The request should be retried with early data disabled.
    • WRONG_VERSION_ON_EARLY_DATA

      public static final NetError WRONG_VERSION_ON_EARLY_DATA
      TLS 1.3 early data was offered, but the server responded with TLS 1.2 or earlier. This is an internal error code to account for a backwards-compatibility issue with early data and TLS 1.2. It will be received before any data is returned from the socket. The request should be retried with early data disabled.

      See https://tools.ietf.org/html/rfc8446#appendix-D.3 for details.

    • TLS13_DOWNGRADE_DETECTED

      public static final NetError TLS13_DOWNGRADE_DETECTED
      TLS 1.3 was enabled, but a lower version was negotiated and the server returned a value indicating it supported TLS 1.3. This is part of a security check in TLS 1.3, but it may also indicate the user is behind a buggy TLS-terminating proxy which implemented TLS 1.2 incorrectly.

      See https://crbug.com/boringssl/226.

    • SSL_KEY_USAGE_INCOMPATIBLE

      public static final NetError SSL_KEY_USAGE_INCOMPATIBLE
      The server's certificate has a keyUsage extension incompatible with the negotiated TLS key exchange method.
    • INVALID_ECH_CONFIG_LIST

      public static final NetError INVALID_ECH_CONFIG_LIST
      The ECHConfigList fetched over DNS cannot be parsed.
    • ECH_NOT_NEGOTIATED

      public static final NetError ECH_NOT_NEGOTIATED
      ECH was enabled, but the server was unable to decrypt the encrypted ClientHello.
    • ECH_FALLBACK_CERTIFICATE_INVALID

      public static final NetError ECH_FALLBACK_CERTIFICATE_INVALID
      ECH was enabled, the server was unable to decrypt the encrypted ClientHello, and additionally did not present a certificate valid for the public name.
    • PROXY_UNABLE_TO_CONNECT_TO_DESTINATION

      public static final NetError PROXY_UNABLE_TO_CONNECT_TO_DESTINATION
      An attempt to proxy a request failed because the proxy was not able to successfully connect to the destination. This likely indicates an issue with the request itself (for instance, the hostname failed to resolve to an IP address or the destination server refused the connection). This error code is used to indicate that the error is outside the control of the proxy server and thus the proxy chain should not be marked as bad. This is in contrast to TUNNEL_CONNECTION_FAILED which is used for general purpose errors connecting to the proxy and by the proxy request response handling when a proxy delegate does not indicate via a different error code whether proxy fallback should occur. Note that for IP Protection proxies this error code causes the proxy to be marked as bad since the preference is to fail open for general purpose errors, but for other proxies this error does not cause the proxy to be marked as bad.
    • PROXY_DELEGATE_CANCELED_CONNECT_REQUEST

      public static final NetError PROXY_DELEGATE_CANCELED_CONNECT_REQUEST
      Some implementations of ProxyDelegate query a separate entity to know whether it should cancel tunnel prior to: - The HTTP CONNECT requests being sent out - The HTTP CONNECT response being parsed An example is CronetProxyDelegate: Cronet allows developers to decide whether the tunnel being established should be canceled.
    • PROXY_DELEGATE_CANCELED_CONNECT_RESPONSE

      public static final NetError PROXY_DELEGATE_CANCELED_CONNECT_RESPONSE
    • CERT_COMMON_NAME_INVALID

      public static final NetError CERT_COMMON_NAME_INVALID
      The server responded with a certificate whose common name did not match the host name. This could mean:
      1. Traffic was redirected to an attacker-controlled server presenting a certificate with a private key known to the attacker.
      2. The server is misconfigured and responds with the wrong certificate.
      3. The user is on a wireless network and is being redirected to the network's login page.
      4. The OS used a DNS search suffix and the server does not have a certificate for the abbreviated name in the address bar.
    • CERT_DATE_INVALID

      public static final NetError CERT_DATE_INVALID
      The server responded with a certificate that, by the system clock, appears to either not yet be valid or to have expired. This could mean:
      1. An attacker is presenting an old certificate with a compromised private key.
      2. The server is misconfigured and is not presenting a valid certificate.
      3. The system clock is incorrect.
    • CERT_AUTHORITY_INVALID

      public static final NetError CERT_AUTHORITY_INVALID
      The server responded with a certificate that is signed by an authority that is not trusted. This could mean:
      1. An attacker substituted the real certificate with a certificate that contains an attacker-controlled public key and is signed by an untrusted authority.
      2. The server operator has a legitimate certificate from a CA that is not in the trust store but should be trusted.
      3. The server is presenting a self-signed certificate, providing no defense against active attackers (but foiling passive attackers).
    • CERT_CONTAINS_ERRORS

      public static final NetError CERT_CONTAINS_ERRORS
      The server responded with a certificate that contains errors. This error is not recoverable. MSDN describes this error as follows: "The SSL certificate contains errors."
    • CERT_NO_REVOCATION_MECHANISM

      public static final NetError CERT_NO_REVOCATION_MECHANISM
      The certificate has no mechanism for determining if it is revoked. In effect, this certificate cannot be revoked.
    • CERT_UNABLE_TO_CHECK_REVOCATION

      public static final NetError CERT_UNABLE_TO_CHECK_REVOCATION
      Revocation information for the security certificate for this site is not available. This could mean:
      1. An attacker has compromised the private key in the certificate and is blocking attempts to determine that the certificate was revoked.
      2. The certificate is unrevoked, but the revocation server is busy or unavailable.
    • CERT_REVOKED

      public static final NetError CERT_REVOKED
      The server responded with a certificate that has been revoked. Ignoring this error is not recommended.
    • CERT_INVALID

      public static final NetError CERT_INVALID
      The server responded with a certificate that is invalid. This error is not recoverable.

      MSDN describes this error as follows: "The SSL certificate is invalid."

    • CERT_WEAK_SIGNATURE_ALGORITHM

      public static final NetError CERT_WEAK_SIGNATURE_ALGORITHM
      The server responded with a certificate that is signed using a weak signature algorithm.
    • CERT_NON_UNIQUE_NAME

      public static final NetError CERT_NON_UNIQUE_NAME
      The host name specified in the certificate is not unique.
    • CERT_WEAK_KEY

      public static final NetError CERT_WEAK_KEY
      The server responded with a certificate that contains a weak key (e.g. a too-small RSA key).
    • CERT_NAME_CONSTRAINT_VIOLATION

      public static final NetError CERT_NAME_CONSTRAINT_VIOLATION
      The certificate claimed DNS names that are in violation of name constraints.
    • CERT_VALIDITY_TOO_LONG

      public static final NetError CERT_VALIDITY_TOO_LONG
      The certificate's validity period is too long.
    • CERT_TRANSPARENCY_REQUIRED

      public static final NetError CERT_TRANSPARENCY_REQUIRED
      Certificate Transparency was required for this connection, but the server did not provide CT information that complied with the policy.
    • CERT_KNOWN_INTERCEPTION_BLOCKED

      public static final NetError CERT_KNOWN_INTERCEPTION_BLOCKED
      The certificate is known to be used for interception by an entity other than the device owner.
    • CERT_SELF_SIGNED_LOCAL_NETWORK

      public static final NetError CERT_SELF_SIGNED_LOCAL_NETWORK
      The certificate is self-signed and it is being used for either an RFC1918 IP literal URL, or a URL ending in .local.
    • CERT_END

      public static final NetError CERT_END
      The value immediately past the last certificate error code.
    • INVALID_URL

      public static final NetError INVALID_URL
      The URL is invalid.
    • DISALLOWED_URL_SCHEME

      public static final NetError DISALLOWED_URL_SCHEME
      The scheme of the URL is disallowed.
    • UNKNOWN_URL_SCHEME

      public static final NetError UNKNOWN_URL_SCHEME
      The scheme of the URL is unknown.
    • INVALID_REDIRECT

      public static final NetError INVALID_REDIRECT
      Attempting to load a URL resulted in a redirect to an invalid URL.
    • TOO_MANY_REDIRECTS

      public static final NetError TOO_MANY_REDIRECTS
      Attempting to load a URL resulted in too many redirects.
    • UNSAFE_REDIRECT

      public static final NetError UNSAFE_REDIRECT
      Attempting to load a URL resulted in an unsafe redirect (e.g., a redirect to file:// is considered unsafe).
    • UNSAFE_PORT

      public static final NetError UNSAFE_PORT
      Attempting to load a URL with an unsafe port number. These are port numbers that correspond to services, which are not robust to spurious input that may be constructed as a result of an allowed web construct (e.g., HTTP looks a lot like SMTP, so form submission to port 25 is denied).
    • INVALID_RESPONSE

      public static final NetError INVALID_RESPONSE
      The server's response was invalid.
    • INVALID_CHUNKED_ENCODING

      public static final NetError INVALID_CHUNKED_ENCODING
      Error in chunked transfer encoding.
    • METHOD_NOT_SUPPORTED

      public static final NetError METHOD_NOT_SUPPORTED
      The server did not support the request method.
    • UNEXPECTED_PROXY_AUTH

      public static final NetError UNEXPECTED_PROXY_AUTH
      The response was 407 (Proxy Authentication Required), yet the request was not sent to a proxy.
    • EMPTY_RESPONSE

      public static final NetError EMPTY_RESPONSE
      The server closed the connection without sending any data.
    • RESPONSE_HEADERS_TOO_BIG

      public static final NetError RESPONSE_HEADERS_TOO_BIG
      The headers section of the response is too large.
    • PAC_SCRIPT_FAILED

      public static final NetError PAC_SCRIPT_FAILED
      The evaluation of the PAC script failed.
    • REQUEST_RANGE_NOT_SATISFIABLE

      public static final NetError REQUEST_RANGE_NOT_SATISFIABLE
      The response was 416 (Requested range not satisfiable) and the server cannot satisfy the range requested.
    • MALFORMED_IDENTITY

      public static final NetError MALFORMED_IDENTITY
      The identity used for authentication is invalid.
    • CONTENT_DECODING_FAILED

      public static final NetError CONTENT_DECODING_FAILED
      Content decoding of the response body failed.
    • NETWORK_IO_SUSPENDED

      public static final NetError NETWORK_IO_SUSPENDED
      An operation could not be completed because all network IO is suspended.
    • NO_SUPPORTED_PROXIES

      public static final NetError NO_SUPPORTED_PROXIES
      There are no supported proxies in the provided list.
    • HTTP2_PROTOCOL_ERROR

      public static final NetError HTTP2_PROTOCOL_ERROR
      There is an HTTP/2 protocol error.
    • INVALID_AUTH_CREDENTIALS

      public static final NetError INVALID_AUTH_CREDENTIALS
      Credentials could not be established during HTTP Authentication.
    • UNSUPPORTED_AUTH_SCHEME

      public static final NetError UNSUPPORTED_AUTH_SCHEME
      An HTTP Authentication scheme was tried which is not supported on this machine.
    • ENCODING_DETECTION_FAILED

      public static final NetError ENCODING_DETECTION_FAILED
      Detecting the encoding of the response failed.
    • MISSING_AUTH_CREDENTIALS

      public static final NetError MISSING_AUTH_CREDENTIALS
      (GSSAPI) No Kerberos credentials were available during HTTP Authentication.
    • UNEXPECTED_SECURITY_LIBRARY_STATUS

      public static final NetError UNEXPECTED_SECURITY_LIBRARY_STATUS
      An unexpected, but documented, SSPI or GSSAPI status code was returned.
    • MISCONFIGURED_AUTH_ENVIRONMENT

      public static final NetError MISCONFIGURED_AUTH_ENVIRONMENT
      The environment was not set up correctly for authentication (for example, no KDC could be found or the principal is unknown).
    • UNDOCUMENTED_SECURITY_LIBRARY_STATUS

      public static final NetError UNDOCUMENTED_SECURITY_LIBRARY_STATUS
      An undocumented SSPI or GSSAPI status code was returned.
    • RESPONSE_BODY_TOO_BIG_TO_DRAIN

      public static final NetError RESPONSE_BODY_TOO_BIG_TO_DRAIN
      The HTTP response was too big to drain.
    • RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH

      public static final NetError RESPONSE_HEADERS_MULTIPLE_CONTENT_LENGTH
      The HTTP response contained multiple distinct Content-Length headers.
    • INCOMPLETE_HTTP2_HEADERS

      public static final NetError INCOMPLETE_HTTP2_HEADERS
      HTTP/2 headers have been received, but not all of them - status or version headers are missing, so additional frames are expected to complete them.
    • PAC_NOT_IN_DHCP

      public static final NetError PAC_NOT_IN_DHCP
      No PAC URL configuration could be retrieved from DHCP. This can indicate either a failure to retrieve the DHCP configuration, or that there was no PAC URL configured in DHCP.
    • RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION

      public static final NetError RESPONSE_HEADERS_MULTIPLE_CONTENT_DISPOSITION
      The HTTP response contained multiple Content-Disposition headers.
    • RESPONSE_HEADERS_MULTIPLE_LOCATION

      public static final NetError RESPONSE_HEADERS_MULTIPLE_LOCATION
      The HTTP response contained multiple Location headers.
    • HTTP2_SERVER_REFUSED_STREAM

      public static final NetError HTTP2_SERVER_REFUSED_STREAM
      HTTP/2 server refused the request without processing, and sent either a GOAWAY frame with error code NO_ERROR and Last-Stream-ID lower than the stream id corresponding to the request indicating that this request has not been processed yet, or a RST_STREAM frame with error code REFUSED_STREAM. Client MAY retry (on a different connection).

      See RFC7540 Section 8.1.4.

    • HTTP2_PING_FAILED

      public static final NetError HTTP2_PING_FAILED
      HTTP/2 server did not respond to the PING message.
    • CONTENT_LENGTH_MISMATCH

      public static final NetError CONTENT_LENGTH_MISMATCH
      The HTTP response body transferred fewer bytes than were advertised by the Content-Length header when the connection is closed.
    • INCOMPLETE_CHUNKED_ENCODING

      public static final NetError INCOMPLETE_CHUNKED_ENCODING
      The HTTP response body is transferred with Chunked-Encoding, but the terminating zero-length chunk was never sent when the connection is closed.
    • QUIC_PROTOCOL_ERROR

      public static final NetError QUIC_PROTOCOL_ERROR
      There is a QUIC protocol error.
    • RESPONSE_HEADERS_TRUNCATED

      public static final NetError RESPONSE_HEADERS_TRUNCATED
      The HTTP headers were truncated by an EOF.
    • QUIC_HANDSHAKE_FAILED

      public static final NetError QUIC_HANDSHAKE_FAILED
      The QUIC crypto handshake failed. This means that the server was unable to read any requests sent, so they may be resent.
    • HTTP2_INADEQUATE_TRANSPORT_SECURITY

      public static final NetError HTTP2_INADEQUATE_TRANSPORT_SECURITY
      Transport security is inadequate for the HTTP/2 version.
    • HTTP2_FLOW_CONTROL_ERROR

      public static final NetError HTTP2_FLOW_CONTROL_ERROR
      The peer violated HTTP/2 flow control.
    • HTTP2_FRAME_SIZE_ERROR

      public static final NetError HTTP2_FRAME_SIZE_ERROR
      The peer sent an improperly sized HTTP/2 frame.
    • HTTP2_COMPRESSION_ERROR

      public static final NetError HTTP2_COMPRESSION_ERROR
      Decoding or encoding of compressed HTTP/2 headers failed.
    • PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION

      public static final NetError PROXY_AUTH_REQUESTED_WITH_NO_CONNECTION
      Proxy Auth Requested without a valid 'Client Socket Handle'.
    • HTTP_1_1_REQUIRED

      public static final NetError HTTP_1_1_REQUIRED
      HTTP_1_1_REQUIRED error code received on HTTP/2 session.
    • PROXY_HTTP_1_1_REQUIRED

      public static final NetError PROXY_HTTP_1_1_REQUIRED
      HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy.
    • PAC_SCRIPT_TERMINATED

      public static final NetError PAC_SCRIPT_TERMINATED
      The PAC script terminated fatally and must be reloaded.
    • PROXY_REQUIRED

      public static final NetError PROXY_REQUIRED
      Signals that the request requires the IPP proxy.
    • INVALID_HTTP_RESPONSE

      public static final NetError INVALID_HTTP_RESPONSE
      The server was expected to return an HTTP/1.x response, but did not. Rather than treat it as HTTP/0.9, this error is returned.
    • CONTENT_DECODING_INIT_FAILED

      public static final NetError CONTENT_DECODING_INIT_FAILED
      Initializing content decoding failed.
    • HTTP2_RST_STREAM_NO_ERROR_RECEIVED

      public static final NetError HTTP2_RST_STREAM_NO_ERROR_RECEIVED
      Received HTTP/2 RST_STREAM frame with NO_ERROR error code. This error should be handled internally by HTTP/2 code, and should not make it above the SpdyStream layer.
    • TOO_MANY_RETRIES

      public static final NetError TOO_MANY_RETRIES
      An HTTP transaction was retried too many times due to authentication or invalid certificates. This may be due to a bug in the net stack that would otherwise infinite loop, or if the server or proxy continually requests fresh credentials or presents a fresh invalid certificate.
    • HTTP2_STREAM_CLOSED

      public static final NetError HTTP2_STREAM_CLOSED
      Received an HTTP/2 frame on a closed stream.
    • HTTP_RESPONSE_CODE_FAILURE

      public static final NetError HTTP_RESPONSE_CODE_FAILURE
      The server returned a non-2xx HTTP response code.

      Note that this error is only used by certain APIs that interpret the HTTP response itself. URLRequest for instance just passes most non-2xx responses back as success.

    • QUIC_CERT_ROOT_NOT_KNOWN

      public static final NetError QUIC_CERT_ROOT_NOT_KNOWN
      The certificate presented on a QUIC connection does not chain to a known root and the origin connected to is not on a list of domains where unknown roots are allowed.
    • QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED

      public static final NetError QUIC_GOAWAY_REQUEST_CAN_BE_RETRIED
      A GOAWAY frame has been received indicating that the request has not been processed and is therefore safe to retry on a different connection.
    • TOO_MANY_ACCEPT_CH_RESTARTS

      public static final NetError TOO_MANY_ACCEPT_CH_RESTARTS
      The ACCEPT_CH restart has been triggered too many times.
    • INCONSISTENT_IP_ADDRESS_SPACE

      public static final NetError INCONSISTENT_IP_ADDRESS_SPACE
      The IP address space of the remote endpoint differed from the previous observed value during the same request. Any cache entry for the affected request should be invalidated.
    • CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY

      public static final NetError CACHED_IP_ADDRESS_SPACE_BLOCKED_BY_LOCAL_NETWORK_ACCESS_POLICY
      The IP address space of the cached remote endpoint is blocked by private network access check.
    • BLOCKED_BY_LOCAL_NETWORK_ACCESS_CHECKS

      public static final NetError BLOCKED_BY_LOCAL_NETWORK_ACCESS_CHECKS
      The connection is blocked by private network access checks.
    • ZSTD_WINDOW_SIZE_TOO_BIG

      public static final NetError ZSTD_WINDOW_SIZE_TOO_BIG
      Content decoding failed due to the zstd window size being too big (over 8MB).
    • DICTIONARY_LOAD_FAILED

      public static final NetError DICTIONARY_LOAD_FAILED
      The compression dictionary cannot be loaded.
    • UNEXPECTED_CONTENT_DICTIONARY_HEADER

      public static final NetError UNEXPECTED_CONTENT_DICTIONARY_HEADER
      The header of a dictionary-compressed stream does not match the expected value.
    • CACHE_MISS

      public static final NetError CACHE_MISS
      The cache does not have the requested entry.
    • CACHE_READ_FAILURE

      public static final NetError CACHE_READ_FAILURE
      Unable to read from the disk cache.
    • CACHE_WRITE_FAILURE

      public static final NetError CACHE_WRITE_FAILURE
      Unable to write to the disk cache.
    • CACHE_OPERATION_NOT_SUPPORTED

      public static final NetError CACHE_OPERATION_NOT_SUPPORTED
      The operation is not supported for this entry.
    • CACHE_OPEN_FAILURE

      public static final NetError CACHE_OPEN_FAILURE
      The disk cache is unable to open this entry.
    • CACHE_CREATE_FAILURE

      public static final NetError CACHE_CREATE_FAILURE
      The disk cache is unable to create this entry.
    • CACHE_RACE

      public static final NetError CACHE_RACE
      Multiple transactions are racing to create disk cache entries. This is an internal error returned from the HttpCache to the HttpCacheTransaction that tells the transaction to restart the entry-creation logic because the state of the cache has changed.
    • CACHE_CHECKSUM_READ_FAILURE

      public static final NetError CACHE_CHECKSUM_READ_FAILURE
      The cache was unable to read a checksum record on an entry. This can be returned from attempts to read from the cache. It is an internal error, returned by the SimpleCache backend, but not by any URLRequest methods or members.
    • CACHE_CHECKSUM_MISMATCH

      public static final NetError CACHE_CHECKSUM_MISMATCH
      The cache found an entry with an invalid checksum. This can be returned from attempts to read from the cache. It is an internal error, returned by the SimpleCache backend, but not by any URLRequest methods or members.
    • CACHE_LOCK_TIMEOUT

      public static final NetError CACHE_LOCK_TIMEOUT
      Internal error code for the HTTP cache. The cache lock timeout has fired.
    • CACHE_AUTH_FAILURE_AFTER_READ

      public static final NetError CACHE_AUTH_FAILURE_AFTER_READ
      Received a challenge after the transaction has read some data, and the credentials are not available. There is no way to get them at that point.
    • CACHE_ENTRY_NOT_SUITABLE

      public static final NetError CACHE_ENTRY_NOT_SUITABLE
      Internal not-quite error code for the HTTP cache. In-memory hints suggest that the cache entry would not have been usable with the transaction's current configuration (e.g. load flags, mode, etc.).
    • CACHE_DOOM_FAILURE

      public static final NetError CACHE_DOOM_FAILURE
      The disk cache is unable to doom this entry.
    • CACHE_OPEN_OR_CREATE_FAILURE

      public static final NetError CACHE_OPEN_OR_CREATE_FAILURE
      The disk cache is unable to open or create this entry.
    • INSECURE_RESPONSE

      public static final NetError INSECURE_RESPONSE
      The server's response was insecure (e.g. there was a cert error).
    • NO_PRIVATE_KEY_FOR_CERT

      public static final NetError NO_PRIVATE_KEY_FOR_CERT
      An attempt to import a client certificate failed, as the user's key database lacked a corresponding private key.
    • ADD_USER_CERT_FAILED

      public static final NetError ADD_USER_CERT_FAILED
      An error adding a certificate to the OS certificate database.
    • INVALID_SIGNED_EXCHANGE

      public static final NetError INVALID_SIGNED_EXCHANGE
      An error occurred while handling a signed exchange.
    • INVALID_WEB_BUNDLE

      public static final NetError INVALID_WEB_BUNDLE
      An error occurred while handling a Web Bundle source.
    • TRUST_TOKEN_OPERATION_FAILED

      public static final NetError TRUST_TOKEN_OPERATION_FAILED
      A Trust Tokens protocol operation-executing request failed for one of a number of reasons (precondition failure, internal error, bad response).
    • TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST

      public static final NetError TRUST_TOKEN_OPERATION_SUCCESS_WITHOUT_SENDING_REQUEST
      When handling a Trust Tokens protocol operation-executing request, the system was able to execute the request's Trust Tokens operation without sending the request to its destination: for instance, the results could have been present in a local cache (for redemption) or the operation could have been diverted to a local provider (for platform-provided issuance).
    • PKCS12_IMPORT_BAD_PASSWORD

      public static final NetError PKCS12_IMPORT_BAD_PASSWORD
      PKCS #12 import failed due to incorrect password.
    • PKCS12_IMPORT_FAILED

      public static final NetError PKCS12_IMPORT_FAILED
      PKCS #12 import failed due to other error.
    • IMPORT_CA_CERT_NOT_CA

      public static final NetError IMPORT_CA_CERT_NOT_CA
      CA import failed - not a CA cert.
    • IMPORT_CERT_ALREADY_EXISTS

      public static final NetError IMPORT_CERT_ALREADY_EXISTS
      Import failed - certificate already exists in database.
    • IMPORT_CA_CERT_FAILED

      public static final NetError IMPORT_CA_CERT_FAILED
      CA import failed due to some other error.
    • IMPORT_SERVER_CERT_FAILED

      public static final NetError IMPORT_SERVER_CERT_FAILED
      Server certificate import failed due to some internal error.
    • PKCS12_IMPORT_INVALID_MAC

      public static final NetError PKCS12_IMPORT_INVALID_MAC
      PKCS #12 import failed due to invalid MAC.
    • PKCS12_IMPORT_INVALID_FILE

      public static final NetError PKCS12_IMPORT_INVALID_FILE
      PKCS #12 import failed due to invalid/corrupt file.
    • PKCS12_IMPORT_UNSUPPORTED

      public static final NetError PKCS12_IMPORT_UNSUPPORTED
      PKCS #12 import failed due to unsupported features.
    • KEY_GENERATION_FAILED

      public static final NetError KEY_GENERATION_FAILED
      Key generation failed.
    • PRIVATE_KEY_EXPORT_FAILED

      public static final NetError PRIVATE_KEY_EXPORT_FAILED
      Failure to export private key.
    • SELF_SIGNED_CERT_GENERATION_FAILED

      public static final NetError SELF_SIGNED_CERT_GENERATION_FAILED
      Self-signed certificate generation failed.
    • CERT_DATABASE_CHANGED

      public static final NetError CERT_DATABASE_CHANGED
      The certificate database changed in some way.
    • CERT_VERIFIER_CHANGED

      public static final NetError CERT_VERIFIER_CHANGED
      The certificate verifier configuration changed in some way.
    • DNS_MALFORMED_RESPONSE

      public static final NetError DNS_MALFORMED_RESPONSE
      DNS resolver received a malformed response.
    • DNS_SERVER_REQUIRES_TCP

      public static final NetError DNS_SERVER_REQUIRES_TCP
      DNS server requires TCP.
    • DNS_TIMED_OUT

      public static final NetError DNS_TIMED_OUT
      DNS transaction timed out.
    • DNS_CACHE_MISS

      public static final NetError DNS_CACHE_MISS
      The entry was not found in cache or other local sources, for lookups where only local sources were queried.
    • DNS_SEARCH_EMPTY

      public static final NetError DNS_SEARCH_EMPTY
      Suffix search list rules prevent resolution of the given host name.
    • DNS_SORT_ERROR

      public static final NetError DNS_SORT_ERROR
      Failed to sort addresses according to RFC3484.
    • DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED

      public static final NetError DNS_SECURE_RESOLVER_HOSTNAME_RESOLUTION_FAILED
      Failed to resolve the hostname of a DNS-over-HTTPS server.
    • DNS_NAME_HTTPS_ONLY

      public static final NetError DNS_NAME_HTTPS_ONLY
      DNS identified the request as disallowed for insecure connection (http/ws). The error should be handled as if an HTTP redirect was received to redirect to https or wss.
    • DNS_REQUEST_CANCELLED

      public static final NetError DNS_REQUEST_CANCELLED
      All DNS requests associated with this job have been cancelled.
    • DNS_NO_MATCHING_SUPPORTED_ALPN

      public static final NetError DNS_NO_MATCHING_SUPPORTED_ALPN
      The hostname resolution of an HTTPS record was expected to be resolved with ALPN values of supported protocols, but did not.
    • DNS_SECURE_PROBE_RECORD_INVALID

      public static final NetError DNS_SECURE_PROBE_RECORD_INVALID
      When checking whether secure DNS can be used, the response returned for the requested probe record either had no answer or was invalid.
    • DNS_CACHE_INVALIDATION_IN_PROGRESS

      public static final NetError DNS_CACHE_INVALIDATION_IN_PROGRESS
      Returned when DNS cache invalidation is in progress. This is a transient error. Callers may want to retry later.
    • DNS_FORMAT_ERROR

      public static final NetError DNS_FORMAT_ERROR
      The DNS server responded with a format error response code.
    • DNS_SERVER_FAILURE

      public static final NetError DNS_SERVER_FAILURE
      The DNS server responded with a server failure response code.
    • DNS_NOT_IMPLEMENTED

      public static final NetError DNS_NOT_IMPLEMENTED
      The DNS server responded that the query type is not implemented.
    • DNS_REFUSED

      public static final NetError DNS_REFUSED
      The DNS server responded that the request was refused.
    • DNS_OTHER_FAILURE

      public static final NetError DNS_OTHER_FAILURE
      The DNS server responded with an rcode indicating that the request failed, but there is no specific error code for the rcode. In other words, the rcode was not one of the following: - NOERR - FORMERR - SERVFAIL - NXDOMAIN - NOTIMP - REFUSED
    • BLOB_INVALID_CONSTRUCTION_ARGUMENTS

      public static final NetError BLOB_INVALID_CONSTRUCTION_ARGUMENTS
      The construction arguments are invalid. This is considered a bad IPC.
    • BLOB_OUT_OF_MEMORY

      public static final NetError BLOB_OUT_OF_MEMORY
      There is not enough memory for the blob.
    • BLOB_FILE_WRITE_FAILED

      public static final NetError BLOB_FILE_WRITE_FAILED
      A file could not be created or written. File system error, like a full disk.
    • BLOB_SOURCE_DIED_IN_TRANSIT

      public static final NetError BLOB_SOURCE_DIED_IN_TRANSIT
      The renderer was destroyed while data was in transit.
    • BLOB_DEREFERENCED_WHILE_BUILDING

      public static final NetError BLOB_DEREFERENCED_WHILE_BUILDING
      The renderer destructed the blob before it was done transferring, and there were no outstanding references (no one is waiting to read) to keep the blob alive.
    • BLOB_REFERENCED_BLOB_BROKEN

      public static final NetError BLOB_REFERENCED_BLOB_BROKEN
      A blob referenced during construction is broken, or a browser-side builder tries to build a blob with a blob reference that is not finished constructing.
    • BLOB_REFERENCED_FILE_UNAVAILABLE

      public static final NetError BLOB_REFERENCED_FILE_UNAVAILABLE
      A file referenced during construction is not accessible to the renderer trying to create the blob.
  • Method Details

    • values

      public static NetError[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static NetError valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null