build_httr_response function

Build a httr response