Added an error handler for 404 pages.