title: best way for storing (not logging) REST error messages in ASP.NET Web API
body: <p>Suppose we have an ASP.Net Web API server and all of errors we return to the clients include these properties :</p>
  
  <ul>
  <li>Error code (REST custom error code)</li>
  <li>HTTP Status (HTTP standard code)</li>
  <li>Error Message (error summery)</li>
  <li>Error Detail (optional)</li>
  </ul>
  
  <p>I just would like to know the best way for storing these error messages (not logging), so later retrieve and return it to clients (via JSON) in case of exception.
  Several suggested answers:</p>
  
  <ul>
  <li>resource file (.resx)</li>
  <li>database</li>
  <li>inside code</li>
  </ul>