CoreWebView2WebErrorStatus Enum

Definition

Indicates the error status values for web navigations.

public enum CoreWebView2WebErrorStatus
type CoreWebView2WebErrorStatus = 
Public Enum CoreWebView2WebErrorStatus
Inheritance
CoreWebView2WebErrorStatus

Fields

CannotConnect 12

Indicates that a connection to the destination was not established.

CertificateCommonNameIsIncorrect 1

Indicates that the SSL certificate common name does not match the web address.

CertificateExpired 2

Indicates that the SSL certificate has expired.

CertificateIsInvalid 5

Indicates that the SSL certificate is not valid. The certificate may not match the public key pins for the host name, the certificate is signed by an untrusted authority or using a weak sign algorithm, the certificate claimed DNS names violate name constraints, the certificate contains a weak key, the validity period of the certificate is too long, lack of revocation information or revocation mechanism, non-unique host name, lack of certificate transparency information, or the certificate is chained to a legacy Symantec root.

CertificateRevoked 4

Indicates that the SSL certificate has been revoked.

ClientCertificateContainsErrors 3

Indicates that the SSL client certificate contains errors.

ConnectionAborted 9

Indicates that the connection was stopped.

ConnectionReset 10

Indicates that the connection was reset.

Disconnected 11

Indicates that the Internet connection has been lost.

ErrorHttpInvalidServerResponse 8

Indicates that the server returned an invalid or unrecognized response.

HostNameNotResolved 13

Indicates that the provided host name was not able to be resolved.

OperationCanceled 14

Indicates that the operation was canceled. This status code is also used when the app cancels a navigation via NavigationStarting event, and for original navigation if the app navigates the WebView2 in a rapid succession away after the load for original navigation commenced, but before it completed.

RedirectFailed 15

Indicates that the request redirect failed.

ServerUnreachable 6

Indicates that the host is unreachable.

Timeout 7

Indicates that the connection has timed out.

UnexpectedError 16

An unexpected error occurred.

Unknown 0

Indicates that an unknown error occurred.

ValidAuthenticationCredentialsRequired 17

Indicates that user is prompted with a login, waiting on user action. Initial navigation to a login site will always return this even if app provides credential using BasicAuthenticationRequested. HTTP response status code in this case is 401. See status code reference.

ValidProxyAuthenticationRequired 18

Indicates that user lacks proper authentication credentials for a proxy server. HTTP response status code in this case is 407. See status code reference.

Applies to