aspnet / AspNetKatana

Microsoft's OWIN implementation, the Katana project
Apache License 2.0
960 stars 331 forks source link

Log response text if error status code returned. #470

Closed jz5 closed 1 year ago

jz5 commented 1 year ago

Twitter API server returns the cause of an error response, but just throwing an exception with EnsureSuccessStatusCode is not enough to determine the cause. Therefore, the response text is written to the log when an error response is received.

Tratcher commented 1 year ago

Thanks