Hi. I am using RestSharp for the first time as I need to send multiples pdf files to a rest API as a multpartformdata.
I am using client.DownloadDataAsync to get the API response, but I am not able to check the correct response code.
I have set "ThrowOnAnyError = true" client options but even when an error occurs in API processing it is not throwing any error. For example, even if I set an incorrect API route, some bynary data is being sent back in my response, and as I can not teste its response code I am getting error when processing it.
So, how can I teste the response code after client.DownloadDataAsync ?