Adding extra info to api error messages