How can I return more than just a string in an ASP.Net BadRequest?
<p>Here is what I would like to do:</p>

<pre><code>return BadRequest(new
    {
       ErrorMessage = (string)parameters[1].Value,
       ErrorNumber = (int)parameters[2].Value
    });
</code></pre>

<p>However BadRequest takes only a string.  Would appreciate any suggestions</p>