return proper array of status, headers, body after closing body