WebExceptionStatus Enumeration
.NET Framework 4.5
Defines status codes for the WebException class.
Namespace: System.Net
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
![]() ![]() | Success | No error was encountered. |
| NameResolutionFailure | The name resolver service could not resolve the host name. | |
![]() ![]() | ConnectFailure | The remote service point could not be contacted at the transport level. |
| ReceiveFailure | A complete response was not received from the remote server. | |
![]() ![]() | SendFailure | A complete request could not be sent to the remote server. |
| PipelineFailure | The request was a piplined request and the connection was closed before the response was received. | |
![]() ![]() | 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. | |
| ConnectionClosed | The connection was prematurely closed. | |
| TrustFailure | A server certificate could not be validated. | |
| SecureChannelFailure | An error occurred while establishing a connection using SSL. | |
| ServerProtocolViolation | The server response was not a valid HTTP response. | |
| KeepAliveFailure | The connection for a request that specifies the Keep-alive header was closed unexpectedly. | |
![]() ![]() | Pending | An internal asynchronous request is pending. |
| Timeout | No response was received during the time-out period for a request. | |
| ProxyNameResolutionFailure | The name resolver service could not resolve the proxy host name. | |
![]() ![]() | 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. |
| CacheEntryNotFound | The specified cache entry was not found. | |
| RequestProhibitedByCachePolicy | The request was not permitted by the cache policy. In general, this occurs when a request is not cacheable and the effective policy prohibits sending the request to the server. You might receive this status if a request method implies the presence of a request body, a request method requires direct interaction with the server, or a request contains a conditional header. | |
| RequestProhibitedByProxy | This request was not permitted by the proxy. |
Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)
The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

