This enumeration defines constants for the status codes used in WebException.Status . public enum WebExceptionStatus { Success = 0 , NameResolutionFailure = 1 , ConnectFailure = 2 , ReceiveFailure = 3 , SendFailure = 4 , PipelineFailure = 5 , RequestCanceled = 6 , ProtocolError = 7 , ConnectionClosed = 8 , TrustFailure = 9 , SecureChannelFailure = 10 , ServerProtocolViolation = 11 , KeepAliveFailure = 12 , Pending = 13 , Timeout = 14 , ProxyNameResolutionFailure = 15 , UnknownError = 16 , MessageLengthLimitExceeded = 17 } Hierarchy System.Object Returned ByWebException.Status Passed ToWebException.WebException( ) |