WebExceptionStatus Enumeration
Defines status codes for the WebException class.
[Visual Basic] <Serializable> Public Enum WebExceptionStatus [C#] [Serializable] public enum WebExceptionStatus [C++] [Serializable] __value public enum WebExceptionStatus [JScript] public Serializable enum WebExceptionStatus
Remarks
The WebExceptionStatus enumeration defines the status codes assigned to the Status property.
Members
| Member name | Description |
|---|---|
| ConnectFailure Supported by the .NET Compact Framework. | The remote service point could not be contacted at the transport level. |
| ConnectionClosed Supported by the .NET Compact Framework. | The connection was prematurely closed. |
| KeepAliveFailure Supported by the .NET Compact Framework. | The connection for a request that specifies the Keep-alive header was closed unexpectedly. |
| MessageLengthLimitExceeded | A message was received that exceeded the specified limit when sending a request or receiving a response from the server. |
| NameResolutionFailure Supported by the .NET Compact Framework. | The name resolver service could not resolve the host name. |
| Pending Supported by the .NET Compact Framework. | An internal asynchronous request is pending. |
| PipelineFailure Supported by the .NET Compact Framework. | This member supports the .NET Framework infrastructure and is not intended to be used directly from your code. |
| ProtocolError Supported by the .NET Compact Framework. | 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. |
| ProxyNameResolutionFailure Supported by the .NET Compact Framework. | The name resolver service could not resolve the proxy host name. |
| ReceiveFailure Supported by the .NET Compact Framework. | A complete response was not received from the remote server. |
| RequestCanceled Supported by the .NET Compact Framework. | The request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status. |
| SecureChannelFailure Supported by the .NET Compact Framework. | An error occurred while establishing a connection using SSL. |
| SendFailure Supported by the .NET Compact Framework. | A complete request could not be sent to the remote server. |
| ServerProtocolViolation Supported by the .NET Compact Framework. | The server response was not a valid HTTP response. |
| Success Supported by the .NET Compact Framework. | No error was encountered. |
| Timeout Supported by the .NET Compact Framework. | No response was received during the time-out period for a request. |
| TrustFailure Supported by the .NET Compact Framework. | A server certificate could not be validated. |
| UnknownError | An exception of unknown type has occurred. |
Requirements
Namespace: System.Net
Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework
Assembly: System (in System.dll)