Handling 404 error when the page is not found ( or other generic error ).