test api response code