WebExceptionStatus Enumeration

WebExceptionStatus Enumeration

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

Defines status codes for the WebException class.

Namespace:  System.Net
Assembly:  System.Net (in System.Net.dll)

public enum WebExceptionStatus

Member nameDescription
SuccessNo error was encountered.
NameResolutionFailureThe name resolver service could not resolve the host name. Not supported. Present in Windows Phone.
ConnectFailureThe remote service point could not be contacted at the transport level.
ReceiveFailureA complete response was not received from the remote server. Not supported. Present in Windows Phone.
SendFailureA complete request could not be sent to the remote server.
PipelineFailureThe request was a pipelined request and the connection was closed before the response was received. Not supported. Present in Windows Phone.
RequestCanceledThe request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status.
ProtocolErrorThe response received from the server was complete but indicated a protocol-level error. For example, an HTTP protocol error such as 401 Access Denied would use this status. Not supported. Present in Windows Phone.
ConnectionClosedThe connection was prematurely closed. Not supported. Present in Windows Phone.
TrustFailureA server certificate could not be validated. Not supported. Present in Windows Phone.
SecureChannelFailureAn error occurred while establishing a connection using SSL. Not supported. Present in Windows Phone.
ServerProtocolViolationThe server response was not a valid HTTP response. Not supported. Present in Windows Phone.
KeepAliveFailureThe connection for a request that specifies the Keep-alive header was closed unexpectedly. Not supported. Present in Windows Phone.
PendingAn internal asynchronous request is pending.
TimeoutNo response was received during the time-out period for a request. Not supported. Present in Windows Phone.
ProxyNameResolutionFailureThe name resolver service could not resolve the proxy host name. Not supported. Present in Windows Phone.
UnknownErrorAn exception of unknown type has occurred.
MessageLengthLimitExceededA message was received that exceeded the specified limit when sending a request or receiving a response from the server.

The WebExceptionStatus enumeration defines the status codes assigned to the Status property.

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Windows Phone

Show:
© 2017 Microsoft