Early Preview

This is currently very much a preview. Please feel free to try things out, but don't be upset if anything is not yet working. Feedback is welcome over on our GitHub Dicussions page.

enum System.​Net.​Http.​HttpRequestError

Assembly: System.Net.Http

Defines error categories representing the reason for <see cref="T:System.Net.Http.HttpRequestException" /> or <see cref="T:System.Net.Http.HttpIOException" /> .

Values

Unknown
A generic or unknown error occurred.
NameResolutionError
The DNS name resolution failed.
ConnectionError
A transport-level failure occurred while connecting to the remote endpoint.
SecureConnectionError
An error occurred during the TLS handshake.
HttpProtocolError
An HTTP/2 or HTTP/3 protocol error occurred.
ExtendedConnectNotSupported
Extended CONNECT for WebSockets over HTTP/2 is not supported by the peer.
VersionNegotiationError
Cannot negotiate the HTTP version requested.
UserAuthenticationError
The authentication failed.
ProxyTunnelError
An error occurred while establishing a connection to the proxy tunnel.
InvalidResponse
An invalid or malformed response has been received.
ResponseEnded
The response ended prematurely.
ConfigurationLimitExceeded
The response exceeded a pre-configured limit such as <see cref="P:System.Net.Http.HttpClient.MaxResponseContentBufferSize" /> or <see cref="P:System.Net.Http.HttpClientHandler.MaxResponseHeadersLength" /> .