Error Messages

Header: wininet.h

The WinINet functions return error codes where appropriate. The following errors are specific to the WinINet functions.

SymbolicCodeDescription
ERROR_FTP_DROPPED12111The FTP operation was not completed because the session was aborted.
ERROR_FTP_NO_PASSIVE_MODE12112Passive mode is not available on the server.
ERROR_FTP_TRANSFER_IN_PROGRESS12110The requested operation cannot be made on the FTP session handle because an operation is already in progress.
ERROR_GOPHER_ATTRIBUTE_NOT_FOUND12137The requested attribute could not be located. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_DATA_ERROR12132An error was detected while receiving data from the Gopher server. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_END_OF_DATA12133The end of the data has been reached. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_INCORRECT_LOCATOR_TYPE12135The type of the locator is not correct for this operation. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_INVALID_LOCATOR12134The supplied locator is not valid. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_NOT_FILE12131The request must be made for a file locator. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_NOT_GOPHER_PLUS12136The requested operation can be made only against a Gopher+ server, or with a locator that specifies a Gopher+ operation. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_PROTOCOL_ERROR12130An error was detected while parsing data returned from the Gopher server. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_GOPHER_UNKNOWN_LOCATOR12138The locator type is unknown. > [!Note] > Windows XP and Windows Server 2003 R2 and earlier only.
ERROR_HTTP_COOKIE_DECLINED12162The HTTP cookie was declined by the server.
ERROR_HTTP_COOKIE_NEEDS_CONFIRMATION12161The HTTP cookie requires confirmation. > [!Note] > Windows Vista and Windows Server 2008 and earlier only.
ERROR_HTTP_DOWNLEVEL_SERVER12151The server did not return any headers.
ERROR_HTTP_HEADER_ALREADY_EXISTS12155The header could not be added because it already exists.
ERROR_HTTP_HEADER_NOT_FOUND12150The requested header could not be located.
ERROR_HTTP_INVALID_HEADER12153The supplied header is invalid.
ERROR_HTTP_INVALID_QUERY_REQUEST12154The request made to [**HttpQueryInfo**](/windows/desktop/api/Wininet/nf-wininet-httpqueryinfoa) is invalid.
ERROR_HTTP_INVALID_SERVER_RESPONSE12152The server response could not be parsed.
ERROR_HTTP_NOT_REDIRECTED12160The HTTP request was not redirected.
ERROR_HTTP_REDIRECT_FAILED12156The redirection failed because either the scheme changed (for example, HTTP to FTP) or all attempts made to redirect failed (default is five attempts).
ERROR_HTTP_REDIRECT_NEEDS_CONFIRMATION12168The redirection requires user confirmation.
ERROR_INTERNET_ASYNC_THREAD_FAILED12047The application could not start an asynchronous thread.
ERROR_INTERNET_BAD_AUTO_PROXY_SCRIPT12166There was an error in the automatic proxy configuration script.
ERROR_INTERNET_BAD_OPTION_LENGTH12010The length of an option supplied to [**InternetQueryOption**](/windows/desktop/api/Wininet/nf-wininet-internetqueryoptiona) or [**InternetSetOption**](/windows/desktop/api/Wininet/nf-wininet-internetsetoptiona) is incorrect for the type of option specified.
ERROR_INTERNET_BAD_REGISTRY_PARAMETER12022A required registry value was located but is an incorrect type or has an invalid value.
ERROR_INTERNET_CANNOT_CONNECT12029The attempt to connect to the server failed.
ERROR_INTERNET_CHG_POST_IS_NON_SECURE12042The application is posting and attempting to change multiple lines of text on a server that is not secure.
ERROR_INTERNET_CLIENT_AUTH_CERT_NEEDED12044The server is requesting client authentication.
ERROR_INTERNET_CLIENT_AUTH_NOT_SETUP12046Client authorization is not set up on this computer.
ERROR_INTERNET_CONNECTION_ABORTED12030The connection with the server has been terminated.
ERROR_INTERNET_CONNECTION_RESET12031The connection with the server has been reset.
ERROR_INTERNET_DECODING_FAILED12175WinINet failed to perform content decoding on the response. For more information, see the [**Content Encoding**](content-encoding.md) topic.
ERROR_INTERNET_DIALOG_PENDING12049Another thread has a password dialog box in progress.
ERROR_INTERNET_DISCONNECTED12163The Internet connection has been lost.
ERROR_INTERNET_EXTENDED_ERROR12003An extended error was returned from the server. This is typically a string or buffer containing a verbose error message. Call [**InternetGetLastResponseInfo**](/windows/desktop/api/Wininet/nf-wininet-internetgetlastresponseinfoa) to retrieve the error text.
ERROR_INTERNET_FAILED_DUETOSECURITYCHECK12171The function failed due to a security check.
ERROR_INTERNET_FORCE_RETRY12032The function needs to redo the request.
ERROR_INTERNET_FORTEZZA_LOGIN_NEEDED12054The requested resource requires Fortezza authentication.
ERROR_INTERNET_HANDLE_EXISTS12036The request failed because the handle already exists.
ERROR_INTERNET_HTTP_TO_HTTPS_ON_REDIR12039The application is moving from a non-SSL to an SSL connection because of a redirect.
ERROR_INTERNET_HTTPS_HTTP_SUBMIT_REDIR12052The data being submitted to an SSL connection is being redirected to a non-SSL connection.
ERROR_INTERNET_HTTPS_TO_HTTP_ON_REDIR12040The application is moving from an SSL to an non-SSL connection because of a redirect.
ERROR_INTERNET_INCORRECT_FORMAT12027The format of the request is invalid.
ERROR_INTERNET_INCORRECT_HANDLE_STATE12019The requested operation cannot be carried out because the handle supplied is not in the correct state.
ERROR_INTERNET_INCORRECT_HANDLE_TYPE12018The type of handle supplied is incorrect for this operation.
ERROR_INTERNET_INCORRECT_PASSWORD12014The request to connect and log on to an FTP server could not be completed because the supplied password is incorrect.
ERROR_INTERNET_INCORRECT_USER_NAME12013The request to connect and log on to an FTP server could not be completed because the supplied user name is incorrect.
ERROR_INTERNET_INSERT_CDROM12053The request requires a CD-ROM to be inserted in the CD-ROM drive to locate the resource requested. > [!Note] > Windows Vista and Windows Server 2008 and earlier only.
ERROR_INTERNET_INTERNAL_ERROR12004An internal error has occurred.
ERROR_INTERNET_INVALID_CA12045The function is unfamiliar with the Certificate Authority that generated the server's certificate.
ERROR_INTERNET_INVALID_OPERATION12016The requested operation is invalid.
ERROR_INTERNET_INVALID_OPTION12009A request to [**InternetQueryOption**](/windows/desktop/api/Wininet/nf-wininet-internetqueryoptiona) or [**InternetSetOption**](/windows/desktop/api/Wininet/nf-wininet-internetsetoptiona) specified an invalid option value.
ERROR_INTERNET_INVALID_PROXY_REQUEST12033The request to the proxy was invalid.
ERROR_INTERNET_INVALID_URL12005The URL is invalid.
ERROR_INTERNET_ITEM_NOT_FOUND12028The requested item could not be located.
ERROR_INTERNET_LOGIN_FAILURE12015The request to connect and log on to an FTP server failed.
ERROR_INTERNET_LOGIN_FAILURE_DISPLAY_ENTITY_BODY12174The MS-Logoff digest header has been returned from the website. This header specifically instructs the digest package to purge credentials for the associated realm. This error will only be returned if [INTERNET_ERROR_MASK_LOGIN_FAILURE_DISPLAY_ENTITY_BODY](option-flags.md) option has been set; otherwise, **ERROR_INTERNET_LOGIN_FAILURE** is returned.
ERROR_INTERNET_MIXED_SECURITY12041The content is not entirely secure. Some of the content being viewed may have come from unsecured servers.
ERROR_INTERNET_NAME_NOT_RESOLVED12007The server name could not be resolved.
ERROR_INTERNET_NEED_MSN_SSPI_PKG12173Not currently implemented.
ERROR_INTERNET_NEED_UI12034A user interface or other blocking operation has been requested. > [!Note] > Windows Vista and Windows Server 2008 and earlier only.
ERROR_INTERNET_NO_CALLBACK12025An asynchronous request could not be made because a callback function has not been set.
ERROR_INTERNET_NO_CONTEXT12024An asynchronous request could not be made because a zero context value was supplied.
ERROR_INTERNET_NO_DIRECT_ACCESS12023Direct network access cannot be made at this time.
ERROR_INTERNET_NOT_INITIALIZED12172Initialization of the WinINet API has not occurred. Indicates that a higher-level function, such as [**InternetOpen**](/windows/desktop/api/Wininet/nf-wininet-internetopena), has not been called yet.
ERROR_INTERNET_NOT_PROXY_REQUEST12020The request cannot be made via a proxy.
ERROR_INTERNET_OPERATION_CANCELLED12017The operation was canceled, usually because the handle on which the request was operating was closed before the operation completed.
ERROR_INTERNET_OPTION_NOT_SETTABLE12011The requested option cannot be set, only queried.
ERROR_INTERNET_OUT_OF_HANDLES12001No more handles could be generated at this time.
ERROR_INTERNET_POST_IS_NON_SECURE12043The application is posting data to a server that is not secure.
ERROR_INTERNET_PROTOCOL_NOT_FOUND12008The requested protocol could not be located.
ERROR_INTERNET_PROXY_SERVER_UNREACHABLE12165The designated proxy server cannot be reached.
ERROR_INTERNET_REDIRECT_SCHEME_CHANGE12048The function could not handle the redirection, because the scheme changed (for example, HTTP to FTP).
ERROR_INTERNET_REGISTRY_VALUE_NOT_FOUND12021A required registry value could not be located.
ERROR_INTERNET_REQUEST_PENDING12026The required operation could not be completed because one or more requests are pending.
ERROR_INTERNET_RETRY_DIALOG12050The dialog box should be retried.
ERROR_INTERNET_SEC_CERT_CN_INVALID12038SSL certificate common name (host name field) is incorrect for example, if you entered `www.server.com` and the common name on the certificate says `www.different.com`.
ERROR_INTERNET_SEC_CERT_DATE_INVALID12037SSL certificate date that was received from the server is bad. The certificate is expired.
ERROR_INTERNET_SEC_CERT_ERRORS12055The SSL certificate contains errors.
ERROR_INTERNET_SEC_CERT_NO_REV12056The SSL certificate was not revoked.
ERROR_INTERNET_SEC_CERT_REV_FAILED12057Revocation of the SSL certificate failed.
ERROR_INTERNET_SEC_CERT_REVOKED12170The SSL certificate was revoked.
ERROR_INTERNET_SEC_INVALID_CERT12169The SSL certificate is invalid.
ERROR_INTERNET_SECURITY_CHANNEL_ERROR12157The application experienced an internal error loading the SSL libraries.
ERROR_INTERNET_SERVER_UNREACHABLE12164The website or server indicated is unreachable.
ERROR_INTERNET_SHUTDOWN12012WinINet support is being shut down or unloaded.
ERROR_INTERNET_TCPIP_NOT_INSTALLED12159The required protocol stack is not loaded and the application cannot start WinSock.
ERROR_INTERNET_TIMEOUT12002The request has timed out.
ERROR_INTERNET_UNABLE_TO_CACHE_FILE12158The function was unable to cache the file.
ERROR_INTERNET_UNABLE_TO_DOWNLOAD_SCRIPT12167The automatic proxy configuration script could not be downloaded. The INTERNET_FLAG_MUST_CACHE_REQUEST flag was set.
ERROR_INTERNET_UNRECOGNIZED_SCHEME12006The URL scheme could not be recognized, or is not supported.
ERROR_INVALID_HANDLEThe handle that was passed to the API has been either invalidated or closed. **Header:** Declared in Winerror.h
ERROR_MORE_DATAMore data is available. **Header:** Declared in Winerror.h
ERROR_NO_MORE_FILESNo more files have been found. **Header:** Declared in Winerror.h
ERROR_NO_MORE_ITEMSNo more items have been found. **Header:** Declared in Winerror.h
97 entries

Article text from the Win32 documentation (opens in a new tab), by Microsoft, under the CC BY 4.0 (opens in a new tab) licence.