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.
Assembly: System.Net (in System.Net.dll)
| Member name | Description | |
|---|---|---|
| Success | No error was encountered. | |
| NameResolutionFailure | The name resolver service could not resolve the host name. Not supported. Present in Windows Phone. | |
| ConnectFailure | The remote service point could not be contacted at the transport level. | |
| ReceiveFailure | A complete response was not received from the remote server. Not supported. Present in Windows Phone. | |
| SendFailure | A complete request could not be sent to the remote server. | |
| PipelineFailure | The request was a pipelined request and the connection was closed before the response was received. Not supported. Present in Windows Phone. | |
| RequestCanceled | The request was canceled, the WebRequest::Abort method was called, or an unclassifiable error occurred. This is the default value for Status. | |
| ProtocolError | The 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. | |
| ConnectionClosed | The connection was prematurely closed. Not supported. Present in Windows Phone. | |
| TrustFailure | A server certificate could not be validated. Not supported. Present in Windows Phone. | |
| SecureChannelFailure | An error occurred while establishing a connection using SSL. Not supported. Present in Windows Phone. | |
| ServerProtocolViolation | The server response was not a valid HTTP response. Not supported. Present in Windows Phone. | |
| KeepAliveFailure | The connection for a request that specifies the Keep-alive header was closed unexpectedly. Not supported. Present in Windows Phone. | |
| Pending | An internal asynchronous request is pending. | |
| Timeout | No response was received during the time-out period for a request. Not supported. Present in Windows Phone. | |
| ProxyNameResolutionFailure | The name resolver service could not resolve the proxy host name. Not supported. Present in Windows Phone. | |
| UnknownError | An exception of unknown type has occurred. | |
| MessageLengthLimitExceeded | A 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.