Expand Minimize
0 out of 2 rated this helpful - Rate this topic

WebExceptionStatus Enumeration

Defines status codes for the WebException class.

Namespace:  System.Net
Assembly:  System (in System.dll)
public enum WebExceptionStatus
Member nameDescription
Supported by Portable Class LibrarySupported in .NET for Windows Store appsSuccessNo error was encountered.
NameResolutionFailureThe name resolver service could not resolve the host name.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsConnectFailureThe remote service point could not be contacted at the transport level.
ReceiveFailureA complete response was not received from the remote server.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsSendFailureA 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.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsRequestCanceledThe 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.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsPendingAn 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.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsUnknownErrorAn exception of unknown type has occurred.
Supported by Portable Class LibrarySupported in .NET for Windows Store appsMessageLengthLimitExceededA message was received that exceeded the specified limit when sending a request or receiving a response from the server.
CacheEntryNotFoundThe specified cache entry was not found.
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.

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

.NET Framework

Supported in: 4.5, 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Portable Class Library

Supported in: Portable Class Library

.NET for Windows Store apps

Supported in: Windows 8

Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

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

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.