ASP.NET Custom 404 Returning 200 OK Instead of 404 Not Found
Solution: The problem, it turned out, was the use of the master page. I got it to work by setting the status code later in the pages lifecycle, obviously the rendering of the master page was resetting it, so I overrode the render method and set it after the render was complete. protected override void … Read more