In Refit, is there anyway to get the raw HTTP response in ApiResponse object?
In my case, if response code is 200, it returns type Person. If the response code is 201, it returns with an Error response. I want to be able to deserialize the HTTP response content again if status code is 201.
I have read the following links, that's all to do with catch exception and do another deserialization. I'm already doing that in another case. But this case is different, there was no exception.
Disable Refit from hiding HTTP content in case response code wasn't 200 (ApiException)
Thanks in advance