Enum WebExceptionStatus
Defines status codes for the WebException class.
public enum WebExceptionStatus
Fields
ConnectFailure = 2The remote service point could not be contacted at the transport level.
ConnectionClosed = 8The connection was prematurely closed.
KeepAliveFailure = 12The connection for a request that specifies the Keep-alive header was closed unexpectedly.
NameResolutionFailure = 1The name resolver service could not resolve the host name.
Pending = 13An internal asynchronous request is pending.
PipelineFailure = 5The request was a piplined request and the connection was closed before the response was received.
ProtocolError = 7The 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 = 15The name resolver service could not resolve the proxy host name.
ReceiveFailure = 3A complete response was not received from the remote server.
RequestCanceled = 6The request was canceled or an unclassifiable error occurred. This is the default value for Status.
SecureChannelFailure = 10An error occurred while establishing a connection using SSL.
SendFailure = 4A complete request could not be sent to the remote server.
ServerProtocolViolation = 11The server response was not a valid HTTP response.
Success = 0No error was encountered.
Timeout = 14No response was received during the time-out period for a request.
TrustFailure = 9A server certificate could not be validated.