Mono Class Library: System.Net Namespace

System.Net.WebExceptionStatus Enumeration

Defines status codes for the System.Net.WebException class.
public enum WebExceptionStatus

Remarks

This enumeration defines the status codes assigned to the WebException.Status property.

Members

Member NameDescription
CacheEntryNotFoundDocumentation for this section has not yet been entered.
ConnectFailure The remote service point could not be contacted at the transport level.
ConnectionClosed The connection was prematurely closed.
KeepAliveFailureThe connection for a request that specifies the Keep-alive header was closed unexpectedly.
MessageLengthLimitExceededDocumentation for this section has not yet been entered.
NameResolutionFailure The name resolver service could not resolve the host name.
Pending An internal asynchronous request is pending.
PipelineFailureThe request was submitted as a pipeline request, but the connection was dropped before the respective response was received.
ProtocolError

The response received from the server was complete but indicated a protocol-level error.

Note: For example, an HTTP protocol error such as 401 Access Denied would use this status.

ProxyNameResolutionFailureThe 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 or the WebRequest.Abort method was called.
RequestProhibitedByCachePolicyDocumentation for this section has not yet been entered.
RequestProhibitedByProxyDocumentation for this section has not yet been entered.
SecureChannelFailure An error occurred in a secure channel link.
SendFailure A complete request could not be sent to the remote server.
ServerProtocolViolationThe server response was not a valid HTTP response.
Success No error was encountered.
TimeoutNo response was received during the timeout period for a request.
TrustFailure A server certificate could not be validated.
UnknownError

An exception of unknown type has occurred.

Note: This is the default value for WebException.Status .

Requirements

Namespace: System.Net
Assembly: System (in System.dll)
Assembly Versions: 1.0.x.x, 1.0.5000.0, 2.0.0.0