WebExceptionStatus Enumeration
.NET Framework 3.0
Defines status codes for the WebException class.
Namespace: System.Net
Assembly: System (in system.dll)
Assembly: System (in system.dll)
| Member name | Description | |
|---|---|---|
| CacheEntryNotFound | The specified cache entry was not found. | |
![]() | ConnectFailure | The remote service point could not be contacted at the transport level. |
![]() | ConnectionClosed | The connection was prematurely closed. |
![]() | KeepAliveFailure | 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 | The name resolver service could not resolve the host name. |
![]() | Pending | An internal asynchronous request is pending. |
![]() | PipelineFailure | The request was a piplined request and the connection was closed before the response was received. |
![]() | 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. |
![]() | ProxyNameResolutionFailure | The name resolver service could not resolve the proxy host name. |
![]() | ReceiveFailure | A complete response was not received from the remote server. |
![]() | RequestCanceled | The request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status. |
| 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. | |
![]() | SecureChannelFailure | An error occurred while establishing a connection using SSL. |
![]() | SendFailure | A complete request could not be sent to the remote server. |
![]() | ServerProtocolViolation | The server response was not a valid HTTP response. |
![]() | Success | No error was encountered. |
![]() | Timeout | No response was received during the time-out period for a request. |
![]() | TrustFailure | A server certificate could not be validated. |
| UnknownError | An exception of unknown type has occurred. |
The WebExceptionStatus enumeration defines the status codes assigned to the Status property.
Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.Community Additions
ADD
Show:
