<PackageReference Include="Microsoft.Net.Http" Version="2.2.20" />

System.Net.Http.HttpRequestException

A base class for exceptions thrown by the HttpClient and HttpMessageHandler classes.

Initializes a new instance of the HttpRequestException class.

public HttpRequestException(string message)

Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception.

public HttpRequestException(string message, Exception inner)

Initializes a new instance of the HttpRequestException class with a specific message that describes the current exception and an inner exception.