So currently when a user loads a page that doesn't exist, or something goes wrong - I redirect users to a 404 page using header
in PHP:
header('Location: www.website.com/404'); //This is simplified intentionally
This page displays a 404 icon with a link back to the homepage, and some other information
Recently in Google Webmaster tools I've been getting a few messages that I'm not returning a 404 page correctly.
Should I be returning http_response_code
when displaying the 404 page? Or should I be handling 404 differently?