Share via


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)

Syntax

'Declaration
Public Enumeration WebExceptionStatus
public enum WebExceptionStatus
public enum class WebExceptionStatus
type WebExceptionStatus
public enum WebExceptionStatus

Members

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.

Remarks

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

See Also

Reference

System.Net Namespace