Drupal offers us the possibility to set the 404 page displayed for the end users (this can be set in the admin configuration).
Ex : If you type
you are redirected to
http://www.example.com/my-custom-404-page (alias for a node)
While this is a good approach for end users, what about the side effects for the
Google bot ?
Generally speaking, if the Google Bot received a 404 error for a page, it will stop crawling it.
However, with the solution displayed above, the headers of the response page are :
HTTP/1.1 302 Found
So my question is : is there any way to have the 404 HTTP code while having a nice custom error page ?