title: Should a REST API return exception in response body?
body: <p>What is the best practice in .NET with Web API? Especially Web REST API. Should a REST API return exception in response body when an exception happens?</p>
  
  <p>For sure I will return a 500 or similar HTTP status. But when I response with this error code what are the best practice? Or even better what is the specification or REST API about this?</p>
  
  <ul>
  <li>return the exception (what I do)</li>
  <li>return en empty response body? (yes but we lose information that can help for debuging)</li>
  <li>return an empty of default JSON object? (I find this confusing)</li>
  <li>something else?</li>
  </ul>