The following is the list of errors returned by WinHTTP.
Error Name | Win32 Error Code | Description |
---|---|---|
ERROR_WINHTTP_OUT_OF_HANDLES | 0x80072EE1 | Obsolete; no longer used. |
ERROR_WINHTTP_TIMEOUT | 0x80072EE2 | The request has timed out. This error can be returned as a result of TCP/IP time-out behavior, regardless of time-out values set in Windows HTTP Services. |
ERROR_WINHTTP_INTERNAL_ERROR | 0x80072EE4 | An internal error has occurred. |
ERROR_WINHTTP_INVALID_URL | 0x80072EE5 | The URL is not valid. |
ERROR_WINHTTP_UNRECOGNIZED_SCHEME | 0x80072EE6 | The URL specified a scheme other than “http:” or “https:”. |
ERROR_WINHTTP_NAME_NOT_RESOLVED | 0x80072EE7 | The server name cannot be resolved using DNS. |
ERROR_WINHTTP_INVALID_OPTION | 0x80072EE9 | A request to WinHttpQueryOption or WinHttpSetOption specified an invalid option value. |
ERROR_WINHTTP_OPTION_NOT_SETTABLE | 0x80072EEB | The requested option cannot be set, only queried. |
ERROR_WINHTTP_SHUTDOWN | 0x80072EEC | The WinHTTP function support is being shut down or unloaded. |
ERROR_WINHTTP_LOGIN_FAILURE | 0x80072EEF | The login attempt failed. |
ERROR_WINHTTP_OPERATION_CANCELLED | 0x80072EF1 | The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed. |
ERROR_WINHTTP_INCORRECT_HANDLE_TYPE | 0x80072EF2 | The type of handle supplied is incorrect for this operation. |
ERROR_WINHTTP_INCORRECT_HANDLE_STATE | 0x80072EF3 | The requested operation cannot be carried out because the handle supplied is not in the correct state. |
ERROR_WINHTTP_CANNOT_CONNECT | 0x80072EFD | Connection to the server failed. |
ERROR_WINHTTP_CONNECTION_ERROR | 0x80072EFE | The connection with the server has been reset or terminated, or an incompatible SSL protocol was encountered. |
ERROR_WINHTTP_RESEND_REQUEST | 0x80072F00 | The WinHTTP function failed. The desired function can be retried on the same request handle. |
ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED | 0x80072F0C | The server requires SSL client Authentication. |
ERROR_WINHTTP_CANNOT_CALL_BEFORE_OPEN | 0x80072F44 | Requested operation cannot be performed before calling the Open method. |
ERROR_WINHTTP_CANNOT_CALL_BEFORE_SEND | 0x80072F45 | Requested operation cannot be performed before calling the Send method. |
ERROR_WINHTTP_CANNOT_CALL_AFTER_SEND | 0x80072F46 | Requested operation cannot be performed after calling the Send method. |
ERROR_WINHTTP_CANNOT_CALL_AFTER_OPEN | 0x80072F47 | Requested operation cannot be performed after calling the Open method. |
ERROR_WINHTTP_HEADER_NOT_FOUND | 0x80072F76 | The requested header cannot be located. |
ERROR_WINHTTP_INVALID_SERVER_RESPONSE | 0x80072F78 | The server response cannot be parsed. |
ERROR_WINHTTP_INVALID_HEADER | 0x80072F79 | The header cannot be parsed |
ERROR_WINHTTP_INVALID_QUERY_REQUEST | 0x80072F7A | Obsolete; no longer used. |
ERROR_WINHTTP_HEADER_ALREADY_EXISTS | 0x80072F7B | Obsolete; no longer used. |
ERROR_WINHTTP_REDIRECT_FAILED | 0x80072F7C | The redirection failed because either the scheme changed or all attempts made to redirect failed (default is five attempts). |
ERROR_WINHTTP_AUTO_PROXY_SERVICE_ERROR | 0x80072F92 | A proxy for the specified URL cannot be located. |
ERROR_WINHTTP_BAD_AUTO_PROXY_SCRIPT | 0x80072F86 | An error occurred executing the script code in the Proxy Auto-Configuration (PAC) file. |
ERROR_WINHTTP_UNABLE_TO_DOWNLOAD_SCRIPT | 0x80072F87 | The PAC file cannot be downloaded. For example, the server referenced by the PAC URL may not have been reachable, or the server returned a 404 NOT FOUND response. |
ERROR_WINHTTP_UNHANDLED_SCRIPT_TYPE | 0x80072F90 | The script type is not supported. |
ERROR_WINHTTP_SCRIPT_EXECUTION_ERROR | 0x80072F91 | An error was encountered while executing a script. |
ERROR_WINHTTP_NOT_INITIALIZED | 0x80072F8C | Obsolete; no longer used. |
ERROR_WINHTTP_SECURE_FAILURE | 0x80072F8F | One or more errors were found in the Secure Sockets Layer (SSL) certificate sent by the server. Check CAPI2 Logs |
ERROR_WINHTTP_SECURE_CERT_DATE_INVALID | 0x80072F05 | Indicates that a required certificate is not within its validity period when verifying against the current system clock or the timestamp in the signed file, or that the validity periods of the certification chain do not nest correctly |
ERROR_WINHTTP_SECURE_CERT_CN_INVALID | 0x80072F06 | Certificate common name does not match the passed value. |
ERROR_WINHTTP_SECURE_INVALID_CA | 0x80072F0D | Root certificate is not trusted by the trust provider |
ERROR_WINHTTP_SECURE_CERT_REV_FAILED | 0x80072F19 | Revocation cannot be checked because the revocation server was offline |
ERROR_WINHTTP_SECURE_CHANNEL_ERROR | 0x80072F7D | Error occurred with secure channel, check other error code most likely SSL issue |
ERROR_WINHTTP_SECURE_INVALID_CERT | 0x80072F89 | Certificate is invalid. |
ERROR_WINHTTP_SECURE_CERT_REVOKED | 0x80072F8A | Certificate has been revoked |
ERROR_WINHTTP_SECURE_CERT_WRONG_USAGE | 0x80072F93 | Certificate is not valid for the requested usage. i.e: wrong EKU |
ERROR_WINHTTP_AUTODETECTION_FAILED | 0x80072F94 | Unable to discover the URL of the Proxy Auto-Configuration (PAC) file. |
ERROR_WINHTTP_HEADER_COUNT_EXCEEDED | 0x80072F95 | Larger number of headers were present in a response than WinHTTP could receive. |
ERROR_WINHTTP_HEADER_SIZE_OVERFLOW | 0x80072F96 | Size of headers received exceeds the limit for the request handle. |
ERROR_WINHTTP_CHUNKED_ENCODING_HEADER_SIZE_OVERFLOW | 0x80072F97 | Overflow condition is encountered in the course of parsing chunked encoding. |
ERROR_WINHTTP_RESPONSE_DRAIN_OVERFLOW | 0x80072F98 | Incoming response exceeds an internal WinHTTP size limit. |
ERROR_WINHTTP_CLIENT_CERT_NO_PRIVATE_KEY | 0x80072F99 | The SSL client certificate does not have a private key associated with it. The client certificate may have been imported to the computer without the private key. |
ERROR_WINHTTP_CLIENT_CERT_NO_ACCESS_PRIVATE_KEY | 0x80072F9A | The application does not have the required privileges to access the private key associated with the client certificate. |
ERROR_WINHTTP_CLIENT_AUTH_CERT_NEEDED_PROXY | 0x80072F9B | A client certificate is required to authenticate on the proxy |
ERROR_WINHTTP_SECURE_FAILURE_PROXY | 0x80072F9C | |
ERROR_WINHTTP_RESERVED_189 | 0x80072F9D | Not used |
ERROR_WINHTTP_HTTP_PROTOCOL_MISMATCH | 0x80072F9E |