fix up response codes for api calls