System.Net.WebExceptionStatus Enumeration

Assembly: System.dll
Namespace: System.Net
Summary
Defines status codes for the WebException class.
C# Syntax:
[Serializable]
public enum WebExceptionStatus
Remarks
The WebExceptionStatus enumeration defines the status codes assigned to the WebException.Status property.
See also:
System.Net Namespace | WebException | MSDN: handlingerrors

System.Net.WebExceptionStatus Member List:

Public Fields
ConnectFailure The remote service point could not be contacted at the transport level.
ConnectionClosed The connection was prematurely closed.
KeepAliveFailure The connection for a request that specifies the Keep-alive header was closed unexpectedly.
NameResolutionFailure The name resolver service could not resolve the host name.
Pending An internal asynchronous request is pending.
PipelineFailure
ProtocolError 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 The 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, the WebRequest.Abort method was called, or an unclassifiable error occurred. This is the default value for WebException.Status.
SecureChannelFailure An error occurred in a secure channel link.
SendFailure A complete request could not be sent to the remote server.
ServerProtocolViolation The server response was not a valid HTTP response.
Success No error was encountered.
Timeout No response was received during the time-out period for a request.
TrustFailure A server certificate could not be validated.

Hierarchy:


Top of page

Copyright (c) 2002 Microsoft Corporation. All rights reserved.