System.Net.WebExceptionStatus Enum

public enum WebExceptionStatus

Base Types

Object
  ValueType
    Enum
      WebExceptionStatus

Assembly

System

Library

Networking

Summary

Defines status codes for the WebException class.

Description

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

See Also

System.Net Namespace

Members

WebExceptionStatus Fields

WebExceptionStatus.ConnectFailure Field
WebExceptionStatus.ConnectionClosed Field
WebExceptionStatus.KeepAliveFailure Field
WebExceptionStatus.NameResolutionFailure Field
WebExceptionStatus.Pending Field
WebExceptionStatus.PipelineFailure Field
WebExceptionStatus.ProtocolError Field
WebExceptionStatus.ProxyNameResolutionFailure Field
WebExceptionStatus.ReceiveFailure Field
WebExceptionStatus.RequestCanceled Field
WebExceptionStatus.SecureChannelFailure Field
WebExceptionStatus.SendFailure Field
WebExceptionStatus.ServerProtocolViolation Field
WebExceptionStatus.Success Field
WebExceptionStatus.Timeout Field
WebExceptionStatus.TrustFailure Field
WebExceptionStatus.value__ Field


WebExceptionStatus.ConnectFailure Field

ConnectFailure = 2;

Summary

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

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.ConnectionClosed Field

ConnectionClosed = 8;

Summary

The connection was prematurely closed.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.KeepAliveFailure Field

KeepAliveFailure = 12;

Summary

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

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.NameResolutionFailure Field

NameResolutionFailure = 1;

Summary

The name resolver service could not resolve the host name.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.Pending Field

Pending = 13;

Summary

An internal asynchronous request is pending.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.PipelineFailure Field

PipelineFailure = 5;

Summary

The request was submitted as a pipeline request, but the connection was dropped before the respective response was received.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.ProtocolError Field

ProtocolError = 7;

Summary

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

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.ProxyNameResolutionFailure Field

ProxyNameResolutionFailure = 15;

Summary

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

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.ReceiveFailure Field

ReceiveFailure = 3;

Summary

A complete response was not received from the remote server.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.RequestCanceled Field

RequestCanceled = 6;

Summary

The request was canceled or the System.Net.WebRequest.Abort method was called.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.SecureChannelFailure Field

SecureChannelFailure = 10;

Summary

An error occurred in a secure channel link.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.SendFailure Field

SendFailure = 4;

Summary

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

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.ServerProtocolViolation Field

ServerProtocolViolation = 11;

Summary

The server response was not a valid HTTP response.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.Success Field

Success = 0;

Summary

No error was encountered.

[Note: This is the default value for System.Net.WebException.Status . ]

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.Timeout Field

Timeout = 14;

Summary

No response was received during the timeout period for a request.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.TrustFailure Field

TrustFailure = 9;

Summary

A server certificate could not be validated.

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace

WebExceptionStatus.value__ Field

value__;

See Also

System.Net.WebExceptionStatus Enum, System.Net Namespace