I have got an MVC website on Azure. I have written a controller action to stand in for a resource, that should return HTTP 404, but the body content should be some HTML where I
I was able to fix this by adding this httpErrors entry to the web.config:
<configuration> <system.webServer> <httpErrors existingResponse="PassThrough"/> </system.webServer> <configuration>
I found this answer here:
http://blog.dezfowler.com/2010/09/aspnet-custom-error-not-shown-in-azure.html