WUA Networking Error Codes

Header: wuerror.h

The Windows Update Agent (WUA) API can return the following error codes when performing network operations such as searching for updates:

SymbolicCodeDescription
WU_E_WINHTTP_INVALID_FILE0x80240038The downloaded file has an unexpected content type.
WU_E_PT_HTTP_STATUS_BAD_REQUEST0x80244016Same as HTTP status 400 – The server could not process the request due to invalid syntax.
WU_E_PT_HTTP_STATUS_DENIED0x80244017Same as HTTP status 401 – The requested resource requires user authentication.
WU_E_PT_HTTP_STATUS_FORBIDDEN0x80244018Same as HTTP status 403 – Server understood the request, but declines to fulfill it.
WU_E_PT_HTTP_STATUS_NOT_FOUND0x80244019Same as HTTP status 404 – The server cannot find the requested URI (Uniform Resource Identifier).
WU_E_PT_HTTP_STATUS_BAD_METHOD0x8024401ASame as HTTP status 405 – The HTTP method is not allowed.
WU_E_PT_HTTP_STATUS_PROXY_AUTH_REQ0x8024401BSame as HTTP status 407 – Proxy authentication is required.
WU_E_PT_HTTP_STATUS_REQUEST_TIMEOUT0x8024401CSame as HTTP status 408 – The server timed out waiting for the request.
WU_E_PT_HTTP_STATUS_CONFLICT0x8024401DSame as HTTP status 409 – The request was not completed due to a conflict with the current state of the resource.
WU_E_PT_HTTP_STATUS_GONE0x8024401ESame as HTTP status 410 – Requested resource is no longer available at the server.
WU_E_PT_HTTP_STATUS_SERVER_ERROR0x8024401FSame as HTTP status 500 – An error internal to the server prevented fulfilling the request.
WU_E_PT_HTTP_STATUS_NOT_SUPPORTED0x80244020Same as HTTP status 501 – Server does not support the functionality required to fulfill the request.
WU_E_PT_HTTP_STATUS_BAD_GATEWAY0x80244021Same as HTTP status 502 – The server, while acting as a gateway or proxy, received an invalid response from the upstream server it accessed in attempting to fulfill the request.
WU_E_PT_HTTP_STATUS_SERVICE_UNAVAIL0x80244022Same as HTTP status 503 – The service is temporarily overloaded.
WU_E_PT_HTTP_STATUS_GATEWAY_TIMEOUT0x80244023Same as HTTP status 504 – The request was timed out waiting for a gateway.
WU_E_PT_HTTP_STATUS_VERSION_NOT_SUP0x80244024Same as HTTP status 505 – The server does not support the HTTP protocol version used for the request.
WU_E_PT_HTTP_STATUS_NOT_MAPPED0x8024402BThe request could not be completed and the reason did not correspond to any of the WU_E_PT_HTTP_* error codes.
WU_E_PT_WINHTTP_NAME_NOT_RESOLVED0x8024402CSame as ERROR_WINHTTP_NAME_NOT_RESOLVED - The proxy server or target server name cannot be resolved.
18 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.