title: How to return proper message on 403 forbidden on MVC3?
body: <p>I know I can fill the <code>ReasonPhrase</code> property of a <code>HttpResponseMessage</code> using Web API Framework. But how can I do the same with the normal "MVC" ? </p>
  
  <p>This is my current code:</p>
  
  <pre><code>if (filterContext.Exception != null &amp;&amp; filterContext.Exception is ArgumentException) 
  {
      filterContext.HttpContext.Response.StatusCode = 403;
      filterContext.HttpContext.Response.StatusDescription = filterContext.Exception.Message;
      //filterContext.HttpContext.Response.Write(filterContext.Exception.Message);
      filterContext.ExceptionHandled = true;
      filterContext.Exception = null;
  }
  </code></pre>
  
  <p>I also know that the commented line would provide the error message to the client but in the Response body. I don't know if this is the best practice.</p>
  
  <p>What I would like to do is the same as this <a href="http://www.dotnetspeaks.com/DisplayArticle.aspx?ID=238" rel="nofollow">link</a>.</p>