combine returnBody and returnHeaders config options into returnResponse