title: Reporting Max Request Length Exceeded in an ASP.NET MVC view
body: <p>I am using a custom HTTPModule to check the size of the request being posted. If it is larger than a given size I would like to stop the request but still render the view with an appropriate error message.</p>
  
  <p>I want to make it nice and simple to reuse so in my action perhaps having a ValidationAttribute on the model?</p>
  
  <p>Has anyone done this before and have any pointers?</p>