Added handler for 404 errors.