View Single Post

  #2 (permalink)  
Old 09-05-2005
Andreas Prilop
 
Posts: n/a
Default Re: Possible to return 404 error code with custom error document?

On Sun, 4 Sep 2005, Jorey Bump wrote:

> I've been using ErrorDocument on some sites


Give URLs!

> to return a custom error document, as in this example:
>
> ErrorDocument 404 /notfound.html
>
> Using this directive, requests for nonexistent resources result in apache
> returning a 302 Found status code with a Location: header pointing to the
> custom page, which the browser then fetches.
> This works fine,


This does not "work fine" but it is wrong because 302 is not the same
as 404.