title: Web Api always returns http status code 200 when an exception occurs
body: <pre><code>public class GlobalExceptionHandler : ExceptionHandler
  {
      public override void Handle(ExceptionHandlerContext context)
      {
  
          context.Result = new NiceInternalServerExceptionResponse("The current operation could not be completed sucessfully.);
      }
  }
  </code></pre>
  
  <p>When a call this Get action:</p>
  
  <pre><code>        [HttpGet]
          public async Task&lt;IHttpActionResult&gt; Get()
          {
              Convert.ToInt16("this causes an exception state");
              var data = await service.Get();
              return Ok(data);
          }
  </code></pre>
  
  <p>An exception is raised... and my global exc handler is triggered.</p>
  
  <p>When my custom response is returned to the client my fiddler always says:</p>
  
  <p>Result: 200</p>
  
  <p>I could also change the <code>return Ok(data);</code> to <code>return NotFound();</code></p>
  
  <p>That will not change anything in the result status code.</p>
  
  <p>How can I overwrite/intercept the http status creation and return my own status code 500 instead?</p>
  
  <p>On my web client I need to show a nice error dialog with a logging id + error message ONLY when status code 500 is returned.</p>