ASP.NET: When designing custom HTTP 404 error page, how to notify Search Engine of the 404 status?
===

Search Engine needs to know a file no longer exists in order to update indexes. One way I tried was to include Response.StatusCode = 404 in the custom 404 error page's Page_Load event, but the result was the custome page could not be loaded. In the Web.config file's CustomErrors element, there is a StatusCode. Is that a good way to inform the Search Engine about 404 status?