These constants are defined in the main cefpython module. They are for use with:
For an up-to-date list of error codes see net_error_list.h in Chromium.
Table of contents:
No error.
An operation was aborted (due to user action).
Permission to access a resource, other than the network, was denied.
The IP address or port number is invalid (e.g., cannot connect to the IP address 0 or the port 0).
The IP address is unreachable. This usually means that there is no route to the specified host or network.
The cache does not have the requested entry.
The server responded with a certificate that is signed by an authority we don't trust. That could mean:
The server responded with a certificate whose common name did not match the host name. This could mean:
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." NOTE: It's unclear how this differs from ERR_CERT_INVALID. For consistency, use that code instead of this one from now on.
The server responded with a certificate that, by our clock, appears to either not yet be valid or to have expired. This could mean:
The value immediately past the last certificate error code.
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."
The certificate has no mechanism for determining if it is revoked. In effect, this certificate cannot be revoked.
The 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.
Revocation information for the security certificate for this site is not available. This could mean:
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.
A connection was closed (corresponding to a TCP FIN).
A connection attempt failed.
A connection attempt was refused.
A connection was reset (corresponding to a TCP RST).
The scheme of the URL is disallowed.
The server closed the connection without sending any data.
A generic failure occurred.
The file or directory cannot be found.
The file is too large.
The server's response was insecure (e.g. there was a cert error).
The Internet connection has been lost.
An argument to the function is incorrect.
Error in chunked transfer encoding.
The handle or file descriptor is invalid.
The server's response was invalid.
The URL is invalid.
The server did not support the request method.
The host name could not be resolved.
No SSL protocol versions are enabled.
The operation failed because of unimplemented functionality.
The headers section of the response is too large.
The server requested a client certificate for SSL client authentication.
An SSL protocol error occurred.
The server requested a renegotiation (rehandshake).
The client and server don't support a common SSL protocol version or cipher suite.
An operation timed out.
Attempting to load an URL resulted in too many redirects.
A tunnel connection through the proxy could not be established.
An unexpected error. This may be caused by a programming mistake or an invalid assumption.
The response was 407 (Proxy Authentication Required), yet we did not send the request to a proxy.
The scheme of the URL is unknown.
Attempting 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).
Attempting to load an URL resulted in an unsafe redirect (e.g., a redirect to file:// is considered unsafe).
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。