Enum NetError
- Namespace
- DotNetBrowser.Net
- Assembly
- DotNetBrowser.dll
The network errors.
public enum NetError
Fields
Aborted = -3An operation was aborted ( due to user action).
AccessDenied = -10Permission to access a resource, other than the network, was denied.
AddUserCertFailed = -503An error adding to the OS certificate database = e.g. OS X Keychain,.
AddressInUse = -147Returned when attempting to bind an address that is already in use.
AddressInvalid = -108The IP address or port number is invalid = e.g., cannot connect to the IP address 0 or the port 0.
AddressUnreachable = -109The IP address is unreachable. This usually means that there is no route to the specified host or network.
BadSslClientAuthCert = -117The SSL handshake failed because of a bad or missing client certificate.
BlockedByAdministrator = -22The request was blocked by the URL blacklist configured by the domain administrator.
BlockedByClient = -20The client chose to block the request.
BlockedByResponse = -27The 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).
CacheAuthFailureAfterRead = -410Received a challenge after the transaction has read some data, and the credentials aren't available. There isn't a way to get them at that point.
CacheChecksumMismatch = -408The 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.
CacheChecksumReadFailure = -407The 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.
CacheCreateFailure = -405The disk cache is unable to create this entry.
CacheDoomFailure = -412The disk cache is unable to doom this entry.
CacheEntryNotSuitable = -411Internal not-quite error code for the HTTP cache. In-memory hints suggest that the cache entry would not have been useable with the transaction's current configuration (e.g. load flags, mode, etc.).
CacheLockTimeout = -409Internal error code for the HTTP cache. The cache lock timeout has fired.
CacheMiss = -400The cache does not have the requested entry.
CacheOpenFailure = -404The disk cache is unable to open this entry.
CacheOpenOrCreateFailure = -413The disk cache is unable to open or create this entry.
CacheOperationNotSupported = -403The operation is not supported for this entry.
CacheRace = -406Multiple 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.
CacheReadFailure = -401Unable to read from the disk cache.
CacheWriteFailure = -402Unable to write to the disk cache.
CertAuthorityInvalid = -202The server responded with a certificate that is signed by an authority we don't trust. The could mean:
1. An attacker has substituted the real certificate for a cert that contains his public key and is signed by his cousin.
2. The server operator has a legitimate certificate from a CA we don't know about, but should trust.
3. The server is presenting a self-signed certificate, providing no defense against active attackers = but foiling passive attackers.
CertCommonNameInvalid = -200The server responded with a certificate whose common name did not match the host name. This could mean:
1. An attacker has redirected our traffic to his server and is presenting a certificate for which he knows the private key.
2. The server is misconfigured and responding with the wrong cert.
3. The user is on a wireless network and is being redirected to the network's login page.
4. The OS has used a DNS search suffix and the server doesn't have a certificate for the abbreviated name in the address bar.
CertContainsErrors = -203The server responded with a certificate that contains errors. This error is not recoverable.
MSDN describes this error as follows: "The SSL certificate contains errors." NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency, use that code instead of this one from now on.
CertDatabaseChanged = -714The certificate database changed in some way.
CertDateInvalid = -201The server responded with a certificate that, by our clock, appears to either not yet be valid or to have expired. This could mean:
1. An attacker is presenting an old certificate for which he has managed to obtain the private key.
2. The server is misconfigured and is not presenting a valid cert.
3. Our clock is wrong.
CertEnd = -217The value immediately past the last certificate error code.
CertInvalid = -207The server responded with a certificate that is invalid. This error is not recoverable.
MSDN describes this error as follows: "The SSL certificate is invalid."
CertNameConstraintViolation = -212The certificate claimed DNS names that are in violation of name constraints.
CertNoRevocationMechanism = -204The certificate has no mechanism for determining if it is revoked. In effect, this certificate cannot be revoked.
CertNonUniqueName = -210The host name specified in the certificate is not unique.
CertRevoked = -206The server responded with a certificate has been revoked. We have the capability to ignore this error, but it is probably not the thing to do.
CertTransparencyRequired = -214Certificate Transparency was required for this connection, but the server did not provide CT information that complied with the policy.
CertUnableToCheckRevocation = -205Revocation 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 our attempt to find out that the cert was revoked.
2. The certificate is unrevoked, but the revocation server is busy or unavailable.
CertValidityTooLong = -213The certificate's validity period is too long.
CertWeakKey = -211The server responded with a certificate that contains a weak key = e.g. a too-small RSA key.
CertWeakSignatureAlgorithm = -208The server responded with a certificate that is signed using a weak signature algorithm.
ClientAuthCertTypeUnsupported = -151Server request for client certificate did not contain any types we support.
ConnectionAborted = -103A 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.
ConnectionClosed = -100A connection was closed (corresponding to a TCP FIN).
ConnectionFailed = -104A connection attempt failed.
ConnectionRefused = -102A connection attempt was refused.
ConnectionReset = -101A connection was reset = corresponding to a TCP RST.
ConnectionTimedOut = -118A connection attempt timed out.
ContentDecodingFailed = -330Content decoding of the response body failed.
ContentDecodingInitFailed = -371Initializing content decoding failed.
ContentLengthMismatch = -354The HTTP response body transferred fewer bytes than were advertised by the Content-Length header when the connection is closed.
ContextShutDown = -26The request failed because the URLRequestContext is shutting down, or has been shut down.
CtConsistencyProofParsingFailed = -171Certificate Transparency: Failed to parse the received consistency proof.
CtSthIncomplete = -169Certificate Transparency: Received a signed tree head whose JSON parsing was OK but was missing some of the fields.
CtSthParsingFailed = -168Certificate Transparency: Received a signed tree head that failed to parse.
DisallowedUrlScheme = -301The scheme of the URL is disallowed.
DnsCacheMiss = -804The entry was not found in cache, for cache-only lookups.
DnsMalformedResponse = -800DNS resolver received a malformed response.
DnsSearchEmpty = -805Suffix search list rules prevent resolution of the given host name.
DnsServerFailed = -802DNS server failed. This error is returned for all of the following error conditions:
1 - Format error - The name server was unable to interpret the query.
2 - Server failure - The name server was unable to process this query due to a problem with the name server.
4 - Not Implemented - The name server does not support the requested kind of query.
5 - Refused - The name server refuses to perform the specified operation for policy reasons.
DnsServerRequiresTcp = -801DNS server requires TCP
DnsSortError = -806Failed to sort addresses according to RFC3484.
DnsTimedOut = -803DNS transaction timed out.
EarlyDataRejected = -178TLS 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.
EmptyResponse = -324The server closed the connection without sending any data.
EncodingConversionFailed = -333Converting the response to target encoding failed.
EncodingDetectionFailed = -340Detecting the encoding of the response failed.
Failed = -2A generic failure occurred.
FileExists = -16The file already exists.
FileNoSpace = -18Not enough room left on the disk.
FileNotFound = -6The file or directory cannot be found.
FilePathTooLong = -17The path or file name is too long.
FileTooBig = -8The file is too large.
FileVirusInfected = -19The file has a virus.
HeadersTruncated = -357The HTTP headers were truncated by an EOF.
HostResolverQueueTooLarge = -119There are too many pending DNS resolves, so a request in the queue was aborted.
Http11Required = -365HTTP_1_1_REQUIRED error code received on HTTP/2 session.
Http2CompressionError = -363Decoding or encoding of compressed HTTP/2 headers failed.
Http2FlowControlError = -361The peer violated HTTP/2 flow control.
Http2FrameSizeError = -362The peer sent an improperly sized HTTP/2 frame.
Http2InadequateTransportSecurity = -360Transport security is inadequate for the HTTP/2 version.
Http2RstStreamNoErrorReceived = -372Received 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.
Http2StreamClosed = -376Received an HTTP/2 frame on a closed stream.
HttpResponseCodeFailure = -379The 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 response back as success.
HttpsProxyTunnelResponse = -140A request to create an SSL tunnel connection through the HTTPS proxy received a non-200 = OK, and non-407 = Proxy Auth, response. The response body might include a description of why the request failed.
IcannNameCollision = -166Resolving 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.
ImportCaCertFailed = -705CA import failed due to some other error.
ImportCaCertNotCa = -703CA import failed - not a CA cert.
ImportCertAlreadyExists = -704Import failed - certificate already exists in database. Note it's a little weird this is an error but reimporting a PKCS12 is ok = no-op,. That's how Mozilla does it, though.
ImportServerCertFailed = -706Server certificate import failed due to some internal error.
IncompleteChunkedEncoding = -355The HTTP response body is transferred with Chunked-Encoding, but the terminating zero-length chunk was never sent when the connection is closed.
IncompleteSpdyHeaders = -347SPDY Headers have been received, but not all of them - status or version headers are missing, so we're expecting additional frames to complete them.
InsecureResponse = -501The server's response was insecure = e.g. there was a cert error,.
InsufficientResources = -12There were not enough resources to complete the operation.
InternetDisconnected = -106The Internet connection has been lost.
InvalidArgument = -4An argument to the function is incorrect.
InvalidAuthCredentials = -338Credentials could not be established during HTTP Authentication.
InvalidChunkedEncoding = -321Error in chunked transfer encoding.
InvalidHandle = -5The handle or file descriptor is invalid.
InvalidHttpResponse = -370The 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.
InvalidRedirect = -303Attempting to load an URL resulted in a redirect to an invalid URL.
InvalidResponse = -320The server's response was invalid.
InvalidSignedExchange = -504An error occurred while handling a signed exchange.
InvalidUrl = -300The URL is invalid.
InvalidWebBundle = -505An error occurred while handling a Web Bundle source.
IoPending = -1An 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.
KeyGenerationFailed = -710Key generation failed.
MalformedIdentity = -329The identity used for authentication is invalid.
MandatoryProxyConfigurationFailed = -131A mandatory proxy configuration could not be used. Currently this means that a mandatory PAC script could not be fetched, parsed or executed.
MethodNotSupported = -322The server did not support the request method.
MisconfiguredAuthEnvironment = -343The environment was not set up correctly for authentication = for example, no KDC could be found or the principal is unknown.
MissingAuthCredentials = -341= GSSAPI, No Kerberos credentials were available during HTTP Authentication.
MsgTooBig = -142The message was too large for the transport. = for example a UDP message which exceeds size threshold,.
NameNotResolved = -105The host name could not be resolved.
NameResolutionFailed = -137An error occurred when trying to do a name resolution = DNS,.
NetworkAccessDenied = -138Permission 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 ERR_ACCESS_DENIED.
NetworkChanged = -21The network changed.
NetworkIoSuspended = -331An operation could not be completed because all network IO is suspended.
NoBufferSpace = -176No socket buffer space is available.
NoPrivateKeyForCert = -502The server responded to a <keygen> with a generated client cert that we don't have the matching private key for.
NoSslVersionsEnabled = -112No SSL protocol versions are enabled.
NoSupportedProxies = -336There are no supported proxies in the provided list.
NotImplemented = -11The operation failed because of unimplemented functionality.
NpnNegotiationFailed = -122The request to negotiate an alternate protocol failed.
Ok = 1No error.
OutOfMemory = -13Memory allocation failed.
PacNotInDhcp = -348No 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.
PacScriptFailed = -327The evaluation of the PAC script failed.
PacScriptTerminated = -367The PAC script terminated fatally and must be reloaded.
Pkcs12ImportBadPassword = -701PKCS #12 import failed due to incorrect password.
Pkcs12ImportFailed = -702PKCS #12 import failed due to other error.
Pkcs12ImportInvalidFile = -708PKCS #12 import failed due to invalid/corrupt file.
Pkcs12ImportInvalidMac = -707PKCS #12 import failed due to invalid MAC.
Pkcs12ImportUnsupported = -709PKCS #12 import failed due to unsupported features.
PreconnectMaxSocketLimit = -133We've hit the max socket limit for the socket pool while preconnecting. We don't bother trying to preconnect more sockets.
PrivateKeyExportFailed = -712Failure to export private key.
ProxyAuthRequested = -127The proxy requested authentication = for tunnel establishment.
ProxyAuthRequestedWithNoConnection = -364Proxy Auth Requested without a valid Client Socket Handle.
ProxyAuthUnsupported = -115The proxy requested authentication = for tunnel establishment, with an unsupported method.
ProxyCertificateInvalid = -136The certificate presented by the HTTPS Proxy was invalid.
ProxyConnectionFailed = -130Could 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.
ProxyHttp11Required = -366HTTP_1_1_REQUIRED error code received on HTTP/2 session to proxy.
QuicCertRootNotKnown = -380The 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.
QuicHandshakeFailed = -358The QUIC crypto handshake failed. This means that the server was unable to read any requests sent, so they may be resent.
QuicProtocolError = -356There is a QUIC protocol error.
ReadIfReadyNotImplemented = -174Socket ReadIfReady support is not implemented. This error should not be user visible, because the normal Read() method is used as a fallback.
RequestRangeNotSatisfiable = -328The response was 416 = Requested range not satisfiable, and the server cannot satisfy the range requested.
ResponseBodyTooBigToDrain = -345The HTTP response was too big to drain.
ResponseHeadersMultipleContentDisposition = -349The HTTP response contained multiple Content-Disposition headers.
ResponseHeadersMultipleContentLength = -346The HTTP response contained multiple distinct Content-Length headers.
ResponseHeadersMultipleLocation = -350The HTTP response contained multiple Location headers.
ResponseHeadersTooBig = -325The headers section of the response is too large.
SelfSignedCertGenerationFailed = -713Self-signed certificate generation failed.
SocketIsConnected = -23The socket is already connected.
SocketNotConnected = -15The socket is not connected.
SocketReceiveBufferSizeUnchangeable = -162Failed to set the socket's receive buffer size as requested, despite success return code from setsockopt.
SocketSendBufferSizeUnchangeable = -163Failed to set the socket's send buffer size as requested, despite success return code from setsockopt.
SocketSetReceiveBufferSizeError = -160Failed to set the socket's receive buffer size as requested.
SocketSetSendBufferSizeError = -161Failed to set the socket's send buffer size as requested.
SocksConnectionFailed = -120Failed establishing a connection to the SOCKS proxy server for a target host.
SocksConnectionHostUnreachable = -121The SOCKS proxy server failed establishing connection to the target host because that host is unreachable.
SpdyPingFailed = -352SPDY server didn't respond to the PING message.
SpdyProtocolError = -337There is a SPDY protocol error.
SpdyServerRefusedStream = -351SPDY server refused the stream. Client should retry. This should never be a user-visible error.
SslBadPeerPublicKey = -149SSL peer's public key is invalid.
SslBadRecordMacAlert = -126An SSL peer sent us a fatal bad_record_mac alert. This has been observed from servers with buggy DEFLATE support.
SslClientAuthCertBadFormat = -164Failed to import a client certificate from the platform store into the SSL library.
SslClientAuthCertNeeded = -110The server requested a client certificate for SSL client authentication.
SslClientAuthCertNoPrivateKey = -135The SSL client certificate has no private key.
SslClientAuthNoCommonAlgorithms = -177There were no common signature algorithms between our client certificate private key and the server's preferences.
SslClientAuthPrivateKeyAccessDenied = -134The permission to use the SSL client certificate's private key was denied.
SslClientAuthSignatureFailed = -141We were unable to 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 won't allow arbitrary data to be signed.
SslDecompressionFailureAlert = -125An SSL peer sent us a fatal decompression_failure alert. This typically occurs when a peer selects DEFLATE compression in the mistaken belief that it supports it.
SslDecryptErrorAlert = -153An SSL peer sent us 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.
SslHandshakeNotCompleted = -148An operation failed because the SSL handshake has not completed.
SslKeyUsageIncompatible = -181The server's certificate has a keyUsage extension incompatible with the negotiated TLS key exchange method.
SslNoRenegotiation = -123The peer sent an SSL no_renegotiation alert message.
SslObsoleteCipher = -172The 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.
SslPinnedKeyNotInCertChain = -150The certificate didn't 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.
SslProtocolError = -107An SSL protocol error occurred.
SslRenegotiationRequested = -114The server requested a renegotiation = rehandshake,.
SslServerCertBadFormat = -167The 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.
SslServerCertChanged = -156The SSL server certificate changed in a renegotiation.
SslUnrecognizedNameAlert = -159The SSL server sent us a fatal unrecognized_name alert.
SslVersionOrCipherMismatch = -113The client and server don't support a common SSL protocol version or cipher suite.
SynReplyNotReceived = -332FLIP data received without receiving a SYN_REPLY on the stream.
TemporarilyThrottled = -139The request throttler module cancelled this request to avoid DDOS.
TimedOut = -7An operation timed out.
Tls13DowngradeDetected = -180TLS 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.)
TooManyRedirects = -310Attempting to load an URL resulted in too many redirects.
TooManyRetries = -375An HTTP transaction was retried too many times due for 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.
TrustTokenOperationCacheHit = -507When handling a Trust Tokens protocol operation-executing request, the system found that the request's desired Trust Tokens results were already present in a local cache; as a result, the main request was cancelled.
TrustTokenOperationFailed = -506A Trust Tokens protocol operation-executing request failed for one of a number of reasons (precondition failure, internal error, bad response).
TunnelConnectionFailed = -111A tunnel connection through the proxy could not be established.
UnableToReuseConnectionForProxyAuth = -170The 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.
Undefined = 0Undefined
UndocumentedSecurityLibraryStatus = -344An undocumented SSPI or GSSAPI status code was returned.
Unexpected = -9An unexpected error. This may be caused by a programming mistake or an invalid assumption.
UnexpectedProxyAuth = -323The response was 407 = Proxy Authentication Required,, yet we did not send the request to a proxy.
UnexpectedSecurityLibraryStatus = -342An unexpected, but documented, SSPI or GSSAPI status code was returned.
UnknownUrlScheme = -302The scheme of the URL is unknown.
UnrecognizedFtpDirectoryListingFormat = -334The server sent an FTP directory listing in a format we do not understand.
UnsafePort = -312Attempting to load an 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,.
UnsafeRedirect = -311Attempting to load an URL resulted in an unsafe redirect = e.g., a redirect to file:// is considered unsafe.
UnsupportedAuthScheme = -339An HTTP Authentication scheme was tried which is not supported on this machine.
UploadFileChanged = -14The file upload failed because the file's modification time was different from the expectation.
UploadStreamRewindNotSupported = -25The upload failed because the upload stream needed to be re-read, due to a retry or a redirect, but the upload stream doesn't support that operation.
WinsockUnexpectedWrittenBytes = -124Winsock sometimes reports more data written than passed. This is probably due to a broken LSP.
WrongVersionOnEarlyData = -179TLS 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.
WsProtocolError = -145Websocket protocol error. Indicates that we are terminating the connection due to a malformed frame or other protocol violation.
WsThrottleQueueTooLarge = -154There are too many pending WebSocketJob instances, so the new job was not pushed to the queue.
WsUpgrade = -173When a WebSocket handshake is done successfully and the connection has been upgraded, the URLRequest is cancelled with this error code.