Export (0) Print
Expand All
Expand Minimize

WebExceptionStatus Enumeration

Defines status codes for the WebException class.

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

public enum WebExceptionStatus
public enum WebExceptionStatus
public enum WebExceptionStatus

 Member nameDescription
CacheEntryNotFoundThe specified cache entry was not found. 
Supported by the .NET Compact FrameworkConnectFailureThe remote service point could not be contacted at the transport level. 
Supported by the .NET Compact FrameworkConnectionClosedThe connection was prematurely closed. 
Supported by the .NET Compact FrameworkKeepAliveFailureThe connection for a request that specifies the Keep-alive header was closed unexpectedly. 
MessageLengthLimitExceededA message was received that exceeded the specified limit when sending a request or receiving a response from the server. 
Supported by the .NET Compact FrameworkNameResolutionFailureThe name resolver service could not resolve the host name. 
Supported by the .NET Compact FrameworkPendingAn internal asynchronous request is pending. 
Supported by the .NET Compact FrameworkPipelineFailureThe request was a piplined request and the connection was closed before the response was received. 
Supported by the .NET Compact FrameworkProtocolErrorThe 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. 
Supported by the .NET Compact FrameworkProxyNameResolutionFailureThe name resolver service could not resolve the proxy host name. 
Supported by the .NET Compact FrameworkReceiveFailureA complete response was not received from the remote server. 
Supported by the .NET Compact FrameworkRequestCanceledThe request was canceled, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for Status
RequestProhibitedByCachePolicyThe 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. 
RequestProhibitedByProxyThis request was not permitted by the proxy. 
Supported by the .NET Compact FrameworkSecureChannelFailureAn error occurred while establishing a connection using SSL. 
Supported by the .NET Compact FrameworkSendFailureA complete request could not be sent to the remote server. 
Supported by the .NET Compact FrameworkServerProtocolViolationThe server response was not a valid HTTP response. 
Supported by the .NET Compact FrameworkSuccessNo error was encountered. 
Supported by the .NET Compact FrameworkTimeoutNo response was received during the time-out period for a request. 
Supported by the .NET Compact FrameworkTrustFailureA server certificate could not be validated. 
UnknownErrorAn exception of unknown type has occurred. 

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

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0, 1.1, 1.0

.NET Compact Framework

Supported in: 2.0, 1.0

Community Additions

ADD
Show:
© 2014 Microsoft