title: Is it possible to pass 2 types of objects to Restsharp?
body: <p>We have scenario where external API returns either User XML or Error XML based on whether request succeed or failed.</p>
  
  <p>At the moment I'm passing User POCO to the restsharp and works fine. But if it fails, this object is NULL. And we won't know why it failed unless we parse the Error XML manually.</p>
  
  <p>Is there a way to workaround this?</p>
  
  <p>e.g.</p>
  
  <pre><code>var restClient = new RestClient(baseURL);
  var request = new RestRequest(uri);
  request.Method = Method.POST;
  var response = restClient.Execute&lt;User&gt;(request);
  </code></pre>
  
  <p>On execution of above method the API can return Error xml object. How do I get Error object on fail and User on success?</p>