Archive for February, 2011

If you are working in a RESTful project or an ajax based web application probably you will need to return http error codes with custom content. Like returning a custom XML message from your endpoint with a specific (like 400 BadRequest) HTTP Status Code. [HttpPost] public ActionResult Create(Customer customer) { var validationResult = _validator.Validate(customer); if [...]


top