Reputation: 44285
I have a custom error page that should display for HTTP 404 errors. It does not and I am having difficulty figuring out why.
My web.config is set
<customErrors mode="On" />
Fiddler shows a 401.2, followed by a 404 for a single POST. Both errors should be custom. The 401.2 is working because I see it in fiddler. The 404 happens immediately after so all I see in the browser is the generic 404 error. I should see my custom 404 page.
Why won't my custom HTTP 404 page showup?
Upvotes: 3
Views: 2388
Reputation: 52430
What's the URL you are testing with? If it's not a file type handled by ASP.NET (e.g. /foo/bar.txt) then you won't see the ASP.NET defined 404 handler.
-Oisin
Upvotes: 3
Reputation: 27405
If you're looking for what the 404.x
codes mean here's this
HTTP 404.x-File or Directory Not Found
Seems to be an IIS specific code, not sure if IIS sends these details with the response
Upvotes: 0