Added nicer error message for 404 errors.