Make error api error messages more generic