Why does a Non-existant page returns 302 status when using a custom 404 page in asp.net
- by webdevbytes
I have setup custom 404 page custom404.aspx that returns a 404 Not Found error correctly, however the non-existant page that was initially requested returns a 302 Found status.
So when I test thispagedoesnotexist.aspx, it returns a 302 Found then the custom404.aspx loads and returns a 404 Not Found status.
I want to make sure that search spiders/bots understand that the requested page does not exist and should not show up in any search results. Is this the case?
Cheers