WebExceptionStatus WebExceptionStatus WebExceptionStatus WebExceptionStatus Enum

Definition

Defines status codes for the WebException class.

This API supports the product infrastructure and is not intended to be used directly from your code.

public enum class WebExceptionStatus
public enum WebExceptionStatus
type WebExceptionStatus = 
Public Enum WebExceptionStatus
Inheritance
WebExceptionStatusWebExceptionStatusWebExceptionStatusWebExceptionStatus

Fields

CacheEntryNotFound CacheEntryNotFound CacheEntryNotFound CacheEntryNotFound 18

The specified cache entry was not found.

ConnectFailure ConnectFailure ConnectFailure ConnectFailure 2

The remote service point could not be contacted at the transport level.

ConnectionClosed ConnectionClosed ConnectionClosed ConnectionClosed 8

The connection was prematurely closed.

KeepAliveFailure KeepAliveFailure KeepAliveFailure KeepAliveFailure 12

The connection for a request that specifies the Keep-alive header was closed unexpectedly.

MessageLengthLimitExceeded MessageLengthLimitExceeded MessageLengthLimitExceeded MessageLengthLimitExceeded 17

A message was received that exceeded the specified limit when sending a request or receiving a response from the server.

NameResolutionFailure NameResolutionFailure NameResolutionFailure NameResolutionFailure 1

The name resolver service could not resolve the host name.

Pending Pending Pending Pending 13

An internal asynchronous request is pending.

PipelineFailure PipelineFailure PipelineFailure PipelineFailure 5

The request was a pipelined request and the connection was closed before the response was received.

ProtocolError ProtocolError ProtocolError ProtocolError 7

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.

ProxyNameResolutionFailure ProxyNameResolutionFailure ProxyNameResolutionFailure ProxyNameResolutionFailure 15

The name resolver service could not resolve the proxy host name.

ReceiveFailure ReceiveFailure ReceiveFailure ReceiveFailure 3

A complete response was not received from the remote server.

RequestCanceled RequestCanceled RequestCanceled RequestCanceled 6

The request was canceled, the Abort() method was called, or an unclassifiable error occurred. This is the default value for Status.

RequestProhibitedByCachePolicy RequestProhibitedByCachePolicy RequestProhibitedByCachePolicy RequestProhibitedByCachePolicy 19

The 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.

RequestProhibitedByProxy RequestProhibitedByProxy RequestProhibitedByProxy RequestProhibitedByProxy 20

This request was not permitted by the proxy.

SecureChannelFailure SecureChannelFailure SecureChannelFailure SecureChannelFailure 10

An error occurred while establishing a connection using SSL.

SendFailure SendFailure SendFailure SendFailure 4

A complete request could not be sent to the remote server.

ServerProtocolViolation ServerProtocolViolation ServerProtocolViolation ServerProtocolViolation 11

The server response was not a valid HTTP response.

Success Success Success Success 0

No error was encountered.

Timeout Timeout Timeout Timeout 14

No response was received during the time-out period for a request.

TrustFailure TrustFailure TrustFailure TrustFailure 9

A server certificate could not be validated.

UnknownError UnknownError UnknownError UnknownError 16

An exception of unknown type has occurred.

Remarks

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

Applies to

See Also