loresoft / FluentRest

Lightweight fluent wrapper over HttpClient to make REST calls easier

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

[Feature] Customize the HttpRequestException to include the StatusCode and ContentString

BoutemineOualid opened this issue · comments

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?