WebErrorStatus Enumeration

Error codes returned by the HTTP protocol and APIs based on that protocol.

Syntax

public enum class WebErrorStatus  

Members

Member Value Description
Unknown An unknown error has occurred.
CertificateCommonNameIsIncorrect The SSL certificate common name does not match the web address.
CertificateExpired The SSL certificate has expired.
CertificateContainsErrors The SSL certificate contains errors.
CertificateRevoked The SSL certificate has been revoked.
CertificateIsInvalid The SSL certificate is invalid.
ServerUnreachable The server is not responding.
Timeout The connection has timed out.
ErrorHttpInvalidServerResponse The server returned an invalid or unrecognized response.
ConnectionAborted The connection was aborted.
ConnectionReset 10  The connection was reset.
Disconnected 11  The connection was ended.
HttpToHttpsOnRedirection 12  Redirected from a location to a secure location.
HttpsToHttpOnRedirection 13  Redirected from a secure location to an unsecure location.
CannotConnect 14  Cannot connect to destination.
HostNameNotResolved 15  Could not resolve provided host name.
OperationCanceled 16  The operation was canceled.
RedirectFailed 17  The request redirect failed.
UnexpectedStatusCode 18  An unexpected status code indicating a failure was received.
UnexpectedRedirection 19  A request was unexpectedly redirected.
UnexpectedClientError 20  An unexpected client-side error has occurred.
UnexpectedServerError 21  An unexpected server-side error has occurred.
MultipleChoices 300  The requested URL represents a high level grouping of which lower level selections need to be made.
MovedPermanently 301  This and all future requests should be directed to the given URI.
Found 302  The resource was found but is available in a location different from the one included in the request.
SeeOther 303  The resource was found but is available in a location different from the one included in the request.
NotModified 304  Indicates the resource has not been modified since last requested.
UseProxy 305  The requested resource must be accessed through the proxy given by the Location field.
TemporaryRedirect 307  The requested resource resides temporarily under a different URI.
BadRequest 400  The request cannot be fulfilled due to bad syntax.
Unauthorized 401  Authentication has failed or credentials have not yet been provided.
PaymentRequired 402  Reserved.
Forbidden 403  The server has refused the request.
NotFound 404  The requested resource could not be found but may be available again in the future.
MethodNotAllowed 405  A request was made of a resource using a request method not supported by that resource.
NotAcceptable 406  The requested resource is only capable of generating content not acceptable according to the Accept headers sent in the request.
ProxyAuthenticationRequired 407  The client must first authenticate itself with the proxy.
RequestTimeout 408  The server timed out waiting for the request.
Conflict 409  Indicates that the request could not be processed because of conflict in the request.
Gone 410  Indicates that the resource requested is no longer available and will not be available again.
LengthRequired 411  The request did not specify the length of its content, which is required by the requested resource.
PreconditionFailed 412  The server does not meet one of the preconditions that the requester put on the request.
RequestEntityTooLarge 413  The request is larger than the server is willing or able to process.
RequestUriTooLong 414  Provided URI length exceeds the maximum length the server can process.
UnsupportedMediaType 415  The request entity has a media type which the server or resource does not support.
RequestedRangeNotSatisfiable 416  The client has asked for a portion of the file, but the server cannot supply that portion.
ExpectationFailed 417  The server cannot meet the requirements of the Expect request-header field.
InternalServerError 500  A generic error message, given when no more specific message is suitable.
NotImplemented 501  The server either does not recognize the request method, or it lacks the ability to fulfill the request.
BadGateway 502  The server was acting as a gateway or proxy and received an invalid response from the upstream server.
ServiceUnavailable 503  The server is currently unavailable.
GatewayTimeout 504  The server was acting as a gateway or proxy and did not receive a timely response from the upstream server.
HttpVersionNotSupported 505  The server does not support the HTTP protocol version used in the request.

Requirements

Namespace: Windows.Web

Metadata: windows.winmd

See also

Reference

Windows.Web Namespace