diff --git a/CefSharp/CefErrorCode.cs b/CefSharp/CefErrorCode.cs
index a7ffaafb5..79eb4a3b6 100644
--- a/CefSharp/CefErrorCode.cs
+++ b/CefSharp/CefErrorCode.cs
@@ -1,4 +1,4 @@
-// Copyright © 2010-2014 The CefSharp Authors. All rights reserved.
+// Copyright © 2010-2015 The CefSharp Authors. All rights reserved.
//
// Use of this source code is governed by a BSD-style license that can be found in the LICENSE file.
@@ -6,6 +6,10 @@ namespace CefSharp
{
///
/// Lists some of the error codes that can be reported by CEF.
+ ///
+ /// For a complete up-to-date list, see the CEF source code
+ /// (cef_errorcode_t in include/internal/cef_types.h)
+ /// and the Chromium source code (net/base/net_error_list.h).
///
public enum CefErrorCode
{
@@ -14,6 +18,14 @@ namespace CefSharp
///
None = 0,
+ ///
+ /// 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.
+ ///
+ IoPending = -1,
+
///
/// A generic failure occurred.
///
@@ -64,6 +76,75 @@ namespace CefSharp
///
NotImplemented = -11,
+ ///
+ /// There were not enough resources to complete the operation.
+ ///
+ InsufficientResources = -12,
+
+ ///
+ /// Memory allocation failed.
+ ///
+ OutOfMemory = -13,
+
+ ///
+ /// The file upload failed because the file's modification time was different
+ /// from the expectation.
+ ///
+ UploadFileChanged = -14,
+
+ ///
+ /// The socket is not connected.
+ ///
+ SocketNotConnected = -15,
+
+ ///
+ /// The file already exists.
+ ///
+ FileExists = -16,
+
+ ///
+ /// The path or file name is too long.
+ ///
+ FilePathTooLong = -17,
+
+ ///
+ /// Not enough room left on the disk.
+ ///
+ FileNoSpace = -18,
+
+ ///
+ /// The file has a virus.
+ ///
+ FileVirusInfected = -19,
+
+ ///
+ /// The client chose to block the request.
+ ///
+ BlockedByClient = -20,
+
+ ///
+ /// The network changed.
+ ///
+ NetworkChanged = -21,
+
+ ///
+ /// The request was blocked by the URL blacklist configured by the domain
+ /// administrator.
+ ///
+ BlockedByAdministrator = -22,
+
+ ///
+ /// The socket is already connected.
+ ///
+ SocketIsConnected = -23,
+
+ ///
+ /// The request was blocked because the forced reenrollment check is still
+ /// pending. This error can only occur on ChromeOS.
+ /// The error can be emitted by code in chrome/browser/policy/policy_helpers.cc.
+ ///
+ BlockedEnrollmentCheckPending = -24,
+
///
/// A connection was closed (corresponding to a TCP FIN).
///
@@ -140,6 +221,286 @@ namespace CefSharp
///
SslRenegotiationRequested = -114,
+ ///
+ /// The proxy requested authentication (for tunnel establishment) with an
+ /// unsupported method.
+ ///
+ ProxyAuthUnsupported = -115,
+
+ ///
+ /// During SSL renegotiation (rehandshake), the server sent a certificate with
+ /// an error.
+ ///
+ /// Note: this error is not in the -2xx range so that it won't be handled as a
+ /// certificate error.
+ ///
+ CertErrorInSslRenegotiation = -116,
+
+ ///
+ /// The SSL handshake failed because of a bad or missing client certificate.
+ ///
+ BadSslClientAuthCert = -117,
+
+ ///
+ /// A connection attempt timed out.
+ ///
+ ConnectionTimedOut = -118,
+
+ ///
+ /// There are too many pending DNS resolves, so a request in the queue was
+ /// aborted.
+ ///
+ HostResolverQueueTooLarge = -119,
+
+ ///
+ /// Failed establishing a connection to the SOCKS proxy server for a target host.
+ ///
+ SocksConnectionFailed = -120,
+
+ ///
+ /// The SOCKS proxy server failed establishing connection to the target host
+ /// because that host is unreachable.
+ ///
+ SocksConnectionHostUnreachable = -121,
+
+ ///
+ /// The request to negotiate an alternate protocol failed.
+ ///
+ NpnNegotiationFailed = -122,
+
+ ///
+ /// The peer sent an SSL no_renegotiation alert message.
+ ///
+ SslNoRenegotiation = -123,
+
+ ///
+ /// Winsock sometimes reports more data written than passed. This is probably
+ /// due to a broken LSP.
+ ///
+ WinsockUnexpectedWrittenBytes = -124,
+
+ ///
+ /// An 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.
+ ///
+ SslDecompressionFailureAlert = -125,
+
+ ///
+ /// An SSL peer sent us a fatal bad_record_mac alert. This has been observed
+ /// from servers with buggy DEFLATE support.
+ ///
+ SslBadRecordMacAlert = -126,
+
+ ///
+ /// The proxy requested authentication (for tunnel establishment).
+ ///
+ ProxyAuthRequested = -127,
+
+ ///
+ /// A known TLS strict server didn't offer the renegotiation extension.
+ ///
+ SslUnsafeNegotiation = -128,
+
+ ///
+ /// The SSL server attempted to use a weak ephemeral Diffie-Hellman key.
+ ///
+ SslWeakServerEphemeralDhKey = -129,
+
+ ///
+ /// 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.
+ ///
+ ProxyConnectionFailed = -130,
+
+ ///
+ /// A mandatory proxy configuration could not be used. Currently this means
+ /// that a mandatory PAC script could not be fetched, parsed or executed.
+ ///
+ MandatoryProxyConfigurationFailed = -131,
+
+ ///
+ /// We've hit the max socket limit for the socket pool while preconnecting. We
+ /// don't bother trying to preconnect more sockets.
+ ///
+ PreconnectMaxSocketLimit = -133,
+
+ ///
+ /// The permission to use the SSL client certificate's private key was denied.
+ ///
+ SslClientAuthPrivateKeyAccessDenied = -134,
+
+ ///
+ /// The SSL client certificate has no private key.
+ ///
+ SslClientAuthCertNoPrivateKey = -135,
+
+ ///
+ /// The certificate presented by the HTTPS Proxy was invalid.
+ ///
+ ProxyCertificateInvalid = -136,
+
+ ///
+ /// An error occurred when trying to do a name resolution (DNS).
+ ///
+ NameResolutionFailed = -137,
+
+ ///
+ /// 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 ERR_ACCESS_DENIED.
+ ///
+ NetworkAccessDenied = -138,
+
+ ///
+ /// The request throttler module cancelled this request to avoid DDOS.
+ ///
+ TemporarilyThrottled = -139,
+
+ ///
+ /// A 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.
+ ///
+ HttpsProxyTunnelResponse = -140,
+
+ ///
+ /// We 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.
+ ///
+ SslClientAuthSignatureFailed = -141,
+
+ ///
+ /// The message was too large for the transport. (for example a UDP message
+ /// which exceeds size threshold).
+ ///
+ MsgTooBig = -142,
+
+ ///
+ /// A SPDY session already exists, and should be used instead of this connection.
+ ///
+ SpdySessionAlreadyExists = -143,
+
+ ///
+ /// Websocket protocol error. Indicates that we are terminating the connection
+ /// due to a malformed frame or other protocol violation.
+ ///
+ WsProtocolError = -145,
+
+ ///
+ /// Connection was aborted for switching to another ptotocol.
+ /// WebSocket abort SocketStream connection when alternate protocol is found.
+ ///
+ ProtocolSwitched = -146,
+
+ ///
+ /// Returned when attempting to bind an address that is already in use.
+ ///
+ AddressInUse = -147,
+
+ ///
+ /// An operation failed because the SSL handshake has not completed.
+ ///
+ SslHandshakeNotCompleted = -148,
+
+ ///
+ /// SSL peer's public key is invalid.
+ ///
+ SslBadPeerPublicKey = -149,
+
+ ///
+ /// The 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.
+ ///
+ SslPinnedKeyNotInCertChain = -150,
+
+ ///
+ /// Server request for client certificate did not contain any types we support.
+ ///
+ ClientAuthCertTypeUnsupported = -151,
+
+ ///
+ /// Server requested one type of cert, then requested a different type while the
+ /// first was still being generated.
+ ///
+ OriginBoundCertGenerationTypeMismatch = -152,
+
+ ///
+ /// An 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.
+ ///
+ SslDecryptErrorAlert = -153,
+
+ ///
+ /// There are too many pending WebSocketJob instances, so the new job was not
+ /// pushed to the queue.
+ ///
+ WsThrottleQueueTooLarge = -154,
+
+ ///
+ /// There are too many active SocketStream instances, so the new connect request
+ /// was rejected.
+ ///
+ TooManySocketStreams = -155,
+
+ ///
+ /// The SSL server certificate changed in a renegotiation.
+ ///
+ SslServerCertChanged = -156,
+
+ ///
+ /// The SSL server indicated that an unnecessary TLS version fallback was
+ /// performed.
+ ///
+ SslInappropriateFallback = -157,
+
+ ///
+ /// Certificate Transparency: All Signed Certificate Timestamps failed to verify.
+ ///
+ CtNoSctsVerifiedOk = -158,
+
+ ///
+ /// The SSL server sent us a fatal unrecognized_name alert.
+ ///
+ SslUnrecognizedNameAlert = -159,
+
+ ///
+ /// Failed to set the socket's receive buffer size as requested.
+ ///
+ SocketSetReceiveBufferSizeError = -160,
+
+ ///
+ /// Failed to set the socket's send buffer size as requested.
+ ///
+ SocketSetSendBufferSizeError = -161,
+
+ ///
+ /// Failed to set the socket's receive buffer size as requested, despite success
+ /// return code from setsockopt.
+ ///
+ SocketReceiveBufferSizeUnchangeable = -162,
+
+ ///
+ /// Failed to set the socket's send buffer size as requested, despite success
+ /// return code from setsockopt.
+ ///
+ SocketSendBufferSizeUnchangeable = -163,
+
+ ///
+ /// Failed to import a client certificate from the platform store into the SSL
+ /// library.
+ ///
+ SslClientAuthCertBadFormat = -164,
+
///
/// The server responded with a certificate whose common name did not match the host name.
/// This could mean:
@@ -206,9 +567,36 @@ namespace CefSharp
CertInvalid = -207,
///
+ /// The server responded with a certificate that is signed using a weak
+ /// signature algorithm.
+ ///
+ CertWeakSignatureAlgorithm = -208,
+
+ ///
+ /// The host name specified in the certificate is not unique.
+ ///
+ CertNonUniqueName = -210,
+
+ ///
+ /// The server responded with a certificate that contains a weak key (e.g.
+ /// a too-small RSA key).
+ ///
+ CertWeakKey = -211,
+
+ ///
+ /// The certificate claimed DNS names that are in violation of name constraints.
+ ///
+ CertNameConstraintViolation = -212,
+
+ ///
+ /// Add new certificate error codes here.
+ ///
+ /// Update the value of CERT_END whenever you add a new certificate error
+ /// code.
+ ///
/// The value immediately past the last certificate error code.
///
- CertEnd = -208,
+ CertEnd = -213,
///
/// The URL is invalid.
@@ -273,14 +661,444 @@ namespace CefSharp
///
ResponseHeadersTooBig = -325,
+ ///
+ /// The PAC requested by HTTP did not have a valid status code (non-200).
+ ///
+ PacStatusNotOk = -326,
+
+ ///
+ /// The evaluation of the PAC script failed.
+ ///
+ PacScriptFailed = -327,
+
+ ///
+ /// The response was 416 (Requested range not satisfiable) and the server cannot
+ /// satisfy the range requested.
+ ///
+ RequestRangeNotSatisfiable = -328,
+
+ ///
+ /// The identity used for authentication is invalid.
+ ///
+ MalformedIdentity = -329,
+
+ ///
+ /// Content decoding of the response body failed.
+ ///
+ ContentDecodingFailed = -330,
+
+ ///
+ /// An operation could not be completed because all network IO
+ /// is suspended.
+ ///
+ NetworkIoSuspended = -331,
+
+ ///
+ /// FLIP data received without receiving a SYN_REPLY on the stream.
+ ///
+ SynReplyNotReceived = -332,
+
+ ///
+ /// Converting the response to target encoding failed.
+ ///
+ EncodingConversionFailed = -333,
+
+ ///
+ /// The server sent an FTP directory listing in a format we do not understand.
+ ///
+ UnrecognizedFtpDirectoryListingFormat = -334,
+
+ ///
+ /// Attempted use of an unknown SPDY stream id.
+ ///
+ InvalidSpdyStream = -335,
+
+ ///
+ /// There are no supported proxies in the provided list.
+ ///
+ NoSupportedProxies = -336,
+
+ ///
+ /// There is a SPDY protocol error.
+ ///
+ SpdyProtocolError = -337,
+
+ ///
+ /// Credentials could not be established during HTTP Authentication.
+ ///
+ InvalidAuthCredentials = -338,
+
+ ///
+ /// An HTTP Authentication scheme was tried which is not supported on this
+ /// machine.
+ ///
+ UnsupportedAuthScheme = -339,
+
+ ///
+ /// Detecting the encoding of the response failed.
+ ///
+ EncodingDetectionFailed = -340,
+
+ ///
+ /// (GSSAPI) No Kerberos credentials were available during HTTP Authentication.
+ ///
+ MissingAuthCredentials = -341,
+
+ ///
+ /// An unexpected, but documented, SSPI or GSSAPI status code was returned.
+ ///
+ UnexpectedSecurityLibraryStatus = -342,
+
+ ///
+ /// The environment was not set up correctly for authentication (for
+ /// example, no KDC could be found or the principal is unknown.
+ ///
+ MisconfiguredAuthEnvironment = -343,
+
+ ///
+ /// An undocumented SSPI or GSSAPI status code was returned.
+ ///
+ UndocumentedSecurityLibraryStatus = -344,
+
+ ///
+ /// The HTTP response was too big to drain.
+ ///
+ ResponseBodyTooBigToDrain = -345,
+
+ ///
+ /// The HTTP response contained multiple distinct Content-Length headers.
+ ///
+ ResponseHeadersMultipleContentLength = -346,
+
+ ///
+ /// SPDY Headers have been received, but not all of them - status or version
+ /// headers are missing, so we're expecting additional frames to complete them.
+ ///
+ IncompleteSpdyHeaders = -347,
+
+ ///
+ /// 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.
+ ///
+ PacNotInDhcp = -348,
+
+ ///
+ /// The HTTP response contained multiple Content-Disposition headers.
+ ///
+ ResponseHeadersMultipleContentDisposition = -349,
+
+ ///
+ /// The HTTP response contained multiple Location headers.
+ ///
+ ResponseHeadersMultipleLocation = -350,
+
+ ///
+ /// SPDY server refused the stream. Client should retry. This should never be a
+ /// user-visible error.
+ ///
+ SpdyServerRefusedStream = -351,
+
+ ///
+ /// SPDY server didn't respond to the PING message.
+ ///
+ SpdyPingFailed = -352,
+
+ ///
+ /// The HTTP response body transferred fewer bytes than were advertised by the
+ /// Content-Length header when the connection is closed.
+ ///
+ ContentLengthMismatch = -354,
+
+ ///
+ /// The HTTP response body is transferred with Chunked-Encoding, but the
+ /// terminating zero-length chunk was never sent when the connection is closed.
+ ///
+ IncompleteChunkedEncoding = -355,
+
+ ///
+ /// There is a QUIC protocol error.
+ ///
+ QuicProtocolError = -356,
+
+ ///
+ /// The HTTP headers were truncated by an EOF.
+ ///
+ ResponseHeadersTruncated = -357,
+
+ ///
+ /// The QUIC crytpo handshake failed. This means that the server was unable
+ /// to read any requests sent, so they may be resent.
+ ///
+ QuicHandshakeFailed = -358,
+
+ ///
+ /// An https resource was requested over an insecure QUIC connection.
+ ///
+ RequestForSecureResourceOverInsecureQuic = -359,
+
+ ///
+ /// Transport security is inadequate for the SPDY version.
+ ///
+ SpdyInadequateTransportSecurity = -360,
+
+ ///
+ /// The peer violated SPDY flow control.
+ ///
+ SpdyFlowControlError = -361,
+
+ ///
+ /// The peer sent an improperly sized SPDY frame.
+ ///
+ SpdyFrameSizeError = -362,
+
+ ///
+ /// Decoding or encoding of compressed SPDY headers failed.
+ ///
+ SpdyCompressionError = -363,
+
+ ///
+ /// Proxy Auth Requested without a valid Client Socket Handle.
+ ///
+ ProxyAuthRequestedWithNoConnection = -364,
+
///
/// The cache does not have the requested entry.
///
CacheMiss = -400,
+ ///
+ /// Unable to read from the disk cache.
+ ///
+ CacheReadFailure = -401,
+
+ ///
+ /// Unable to write to the disk cache.
+ ///
+ CacheWriteFailure = -402,
+
+ ///
+ /// The operation is not supported for this entry.
+ ///
+ CacheOperationNotSupported = -403,
+
+ ///
+ /// The disk cache is unable to open this entry.
+ ///
+ CacheOpenFailure = -404,
+
+ ///
+ /// The disk cache is unable to create this entry.
+ ///
+ CacheCreateFailure = -405,
+
+ ///
+ /// 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.
+ ///
+ CacheRace = -406,
+
+ ///
+ /// 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.
+ ///
+ CacheChecksumReadFailure = -407,
+
+ ///
+ /// 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.
+ ///
+ CacheChecksumMismatch = -408,
+
+ ///
+ /// Internal error code for the HTTP cache. The cache lock timeout has fired.
+ ///
+ CacheLockTimeout = -409,
+
///
/// The server's response was insecure (e.g. there was a cert error).
///
- InsecureResponse = -501
+ InsecureResponse = -501,
+
+ ///
+ /// The server responded to a <keygen> with a generated client cert that we
+ /// don't have the matching private key for.
+ ///
+ NoPrivateKeyForCert = -502,
+
+ ///
+ /// An error adding to the OS certificate database (e.g. OS X Keychain).
+ ///
+ AddUserCertFailed = -503,
+
+ ///
+ /// A generic error for failed FTP control connection command.
+ /// If possible, please use or add a more specific error code.
+ ///
+ FtpFailed = -601,
+
+ ///
+ /// The server cannot fulfill the request at this point. This is a temporary
+ /// error.
+ /// FTP response code 421.
+ ///
+ FtpServiceUnavailable = -602,
+
+ ///
+ /// The server has aborted the transfer.
+ /// FTP response code 426.
+ ///
+ FtpTransferAborted = -603,
+
+ ///
+ /// The file is busy, or some other temporary error condition on opening
+ /// the file.
+ /// FTP response code 450.
+ ///
+ FtpFileBusy = -604,
+
+ ///
+ /// Server rejected our command because of syntax errors.
+ /// FTP response codes 500, 501.
+ ///
+ FtpSyntaxError = -605,
+
+ ///
+ /// Server does not support the command we issued.
+ /// FTP response codes 502, 504.
+ ///
+ FtpCommandNotSupported = -606,
+
+ ///
+ /// Server rejected our command because we didn't issue the commands in right
+ /// order.
+ /// FTP response code 503.
+ ///
+ FtpBadCommandSequence = -607,
+
+ ///
+ /// PKCS #12 import failed due to incorrect password.
+ ///
+ Pkcs12ImportBadPassword = -701,
+
+ ///
+ /// PKCS #12 import failed due to other error.
+ ///
+ Pkcs12ImportFailed = -702,
+
+ ///
+ /// CA import failed - not a CA cert.
+ ///
+ ImportCaCertNotCa = -703,
+
+ ///
+ /// Import 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.
+ ///
+ ImportCertAlreadyExists = -704,
+
+ ///
+ /// CA import failed due to some other error.
+ ///
+ ImportCaCertFailed = -705,
+
+ ///
+ /// Server certificate import failed due to some internal error.
+ ///
+ ImportServerCertFailed = -706,
+
+ ///
+ /// PKCS #12 import failed due to invalid MAC.
+ ///
+ Pkcs12ImportInvalidMac = -707,
+
+ ///
+ /// PKCS #12 import failed due to invalid/corrupt file.
+ ///
+ Pkcs12ImportInvalidFile = -708,
+
+ ///
+ /// PKCS #12 import failed due to unsupported features.
+ ///
+ Pkcs12ImportUnsupported = -709,
+
+ ///
+ /// Key generation failed.
+ ///
+ KeyGenerationFailed = -710,
+
+ ///
+ /// Server-bound certificate generation failed.
+ ///
+ OriginBoundCertGenerationFailed = -711,
+
+ ///
+ /// Failure to export private key.
+ ///
+ PrivateKeyExportFailed = -712,
+
+ ///
+ /// Self-signed certificate generation failed.
+ ///
+ SelfSignedCertGenerationFailed = -713,
+
+ ///
+ /// The certificate database changed in some way.
+ ///
+ CertDatabaseChanged = -714,
+
+ ///
+ /// Failure to import Channel ID.
+ ///
+ ChannelIdImportFailed = -715,
+
+ ///
+ /// DNS resolver received a malformed response.
+ ///
+ DnsMalformedResponse = -800,
+
+ ///
+ /// DNS server requires TCP
+ ///
+ DnsServerRequiresTcp = -801,
+
+ ///
+ /// DNS 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.
+ ///
+ DnsServerFailed = -802,
+
+ ///
+ /// DNS transaction timed out.
+ ///
+ DnsTimedOut = -803,
+
+ ///
+ /// The entry was not found in cache, for cache-only lookups.
+ ///
+ DnsCacheMiss = -804,
+
+ ///
+ /// Suffix search list rules prevent resolution of the given host name.
+ ///
+ DnsSearchEmpty = -805,
+
+ ///
+ /// Failed to sort addresses according to RFC3484.
+ ///
+ DnsSortError = -806
};
}