Exception Status Enum
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Defines status codes for the WebException class.
This API supports the product infrastructure and is not intended to be used directly from your code.
public enum class WebExceptionStatus
public enum WebExceptionStatus
type WebExceptionStatus =
Public Enum WebExceptionStatus
The specified cache entry was not found.
The remote service point could not be contacted at the transport level.
The connection was prematurely closed.
The connection for a request that specifies the Keep-alive header was closed unexpectedly.
A message was received that exceeded the specified limit when sending a request or receiving a response from the server.
The name resolver service could not resolve the host name.
An internal asynchronous request is pending.
The request was a pipelined request and the connection was closed before the response was received.
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.
The name resolver service could not resolve the proxy host name.
A complete response was not received from the remote server.
The request was canceled, the Abort() method was called, or an unclassifiable error occurred. This is the default value for Status.
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.
This request was not permitted by the proxy.
An error occurred while establishing a connection using SSL.
A complete request could not be sent to the remote server.
The server response was not a valid HTTP response.
No error was encountered.
No response was received during the time-out period for a request.
A server certificate could not be validated.
An exception of unknown type has occurred.
The WebExceptionStatus enumeration defines the status codes assigned to the Status property.