title: ASP.NET Web API Throw Exception
body: <p>I'm trying to throw an exception from my Web API controller.
  The problem is that my JavaScript code doesn't get any data back. </p>
  
  <pre><code>throw new HttpResponseException(HttpStatusCode.NoContent);
  </code></pre>
  
  <p>In my jQuery ajax function I don't get anything back. I get undefined back from the ajax call. 
  So basically what is the proper way of handling errors from the server? </p>