WebExceptionStatus Enumeration

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Defines status codes for the WebException class.

Namespace:  System.Net
Assembly:  System.Http (in System.Http.dll)

public enum class WebExceptionStatus

Member nameDescription
SuccessNo error was encountered.
NameResolutionFailureThe name resolver service could not resolve the host name.
ConnectFailureThe remote service point could not be contacted at the transport level.
ReceiveFailureA complete response was not received from the remote server.
SendFailureA complete request could not be sent to the remote server.
PipelineFailureThe request was a piplined request and the connection was closed before the response was received.
RequestCanceledThe request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status.
ProtocolErrorThe 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.
ConnectionClosedThe connection was prematurely closed.
TrustFailureA server certificate could not be validated.
SecureChannelFailureAn error occurred while establishing a connection using SSL.
ServerProtocolViolationThe server response was not a valid HTTP response.
KeepAliveFailureThe connection for a request that specifies the Keep-alive header was closed unexpectedly.
PendingAn internal asynchronous request is pending.
TimeoutNo response was received during the time-out period for a request.
ProxyNameResolutionFailureThe name resolver service could not resolve the proxy host name.

The WebExceptionStatus enumeration defines the status codes assigned to the Status property.