FluentRest
FluentRest copied to clipboard
[Feature] Customize the HttpRequestException to include the StatusCode and ContentString
Hi, I have a little feature request, currently the library when calling the internal EnsureSuccessStatusCode, it throws an HttpRequestException with the Response content string in the Data dictionary and the code in the error message. Is there a reason why wouldn't you just create a custom HttpRequestException that exposes both fields?