RestSharp - How do I get the numerical http response code?
Simply grab the StatusCode property off of the RestResponse object and cast the enum value to int.
RestResponse response = client.Execute(request);
HttpStatusCode statusCode = response.StatusCode;
int numericStatusCode = (int)statusCode;