Process RestSharp Response as a Stream after checking the response status?

I think this has been reported before here.

Looks like they released an update for this and the way to do it is to use the AdvancedResponseWriter instead.

var client = new RestClient
var request = new RestRequest();
IRestResponse response;
request.AdvancedResponseWriter = (stream, response) => {
    // Should be able to access response which is an IHttpResponse
};
response = client.Execute(request);

Docs.