store reponse body in variable so that it is not written out to logs