Return a more helpful error message in the event of a 404 due to an invalid refs path.