def get_error_message(request, response)
      version         = get_request_api_version(request)
      data_request    = use_response_error_message?(request, response)
      return_response = (version >= 2.1 || data_request)
      (return_response && response.body) ? "response body: #{response.body}" : "request body: #{request.body}"
    end
def get_error_message(request, response)
      version         = get_request_api_version(request)
      data_request    = use_response_error_message?(request, response)
      return_response = (version >= 2.1 || data_request)
      (return_response && response.body) ? "response body: #{response.body}" : "request body: #{request.body}"
    end
Get an error message from the response body if the request url api version
 is 2.1 or greater otherwise use the request body