WebExceptionStatus Enumeration
This API supports the product infrastructure and is not intended to be used directly from your code.
Defines status codes for the WebException class.
Assembly: System (in System.dll)
| Member name | Description | |
|---|---|---|
| CacheEntryNotFound | This API supports the product infrastructure and is not intended to be used directly from your code. The specified cache entry was not found. | |
| ConnectFailure | This API supports the product infrastructure and is not intended to be used directly from your code. The remote service point could not be contacted at the transport level. | |
| ConnectionClosed | This API supports the product infrastructure and is not intended to be used directly from your code. The connection was prematurely closed. | |
| KeepAliveFailure | This API supports the product infrastructure and is not intended to be used directly from your code. The connection for a request that specifies the Keep-alive header was closed unexpectedly. | |
| MessageLengthLimitExceeded | This API supports the product infrastructure and is not intended to be used directly from your code. A message was received that exceeded the specified limit when sending a request or receiving a response from the server. | |
| NameResolutionFailure | This API supports the product infrastructure and is not intended to be used directly from your code. The name resolver service could not resolve the host name. | |
| Pending | This API supports the product infrastructure and is not intended to be used directly from your code. An internal asynchronous request is pending. | |
| PipelineFailure | This API supports the product infrastructure and is not intended to be used directly from your code. The request was a piplined request and the connection was closed before the response was received. | |
| ProtocolError | This API supports the product infrastructure and is not intended to be used directly from your code. 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 | This API supports the product infrastructure and is not intended to be used directly from your code. The name resolver service could not resolve the proxy host name. | |
| ReceiveFailure | This API supports the product infrastructure and is not intended to be used directly from your code. A complete response was not received from the remote server. | |
| RequestCanceled | This API supports the product infrastructure and is not intended to be used directly from your code. The request was canceled, the WebRequest::Abort method was called, or an unclassifiable error occurred. This is the default value for Status. | |
| RequestProhibitedByCachePolicy | This API supports the product infrastructure and is not intended to be used directly from your code. 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 API supports the product infrastructure and is not intended to be used directly from your code. This request was not permitted by the proxy. | |
| SecureChannelFailure | This API supports the product infrastructure and is not intended to be used directly from your code. An error occurred while establishing a connection using SSL. | |
| SendFailure | This API supports the product infrastructure and is not intended to be used directly from your code. A complete request could not be sent to the remote server. | |
| ServerProtocolViolation | This API supports the product infrastructure and is not intended to be used directly from your code. The server response was not a valid HTTP response. | |
| Success | This API supports the product infrastructure and is not intended to be used directly from your code. No error was encountered. | |
| Timeout | This API supports the product infrastructure and is not intended to be used directly from your code. No response was received during the time-out period for a request. | |
| TrustFailure | This API supports the product infrastructure and is not intended to be used directly from your code. A server certificate could not be validated. | |
| UnknownError | This API supports the product infrastructure and is not intended to be used directly from your code. An exception of unknown type has occurred. |
Available since 8
.NET Framework
Available since 1.1
Portable Class Library
Supported in: portable .NET platforms
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Windows Phone
Available since 8.1