public void ExecuteWith(RestClient client)
{
this.response = client.Request(this.request);
if (response.InnerException != null) throw response.InnerException;
if (response.StatusCode != System.Net.HttpStatusCode.OK)
throw new InvalidOperationException(String.Format("Server returned {0}: {1}, {2}", response.StatusCode, response.StatusDescription, response.Content));
}