add details to api error output