def api_response(res, return_status = false)
      data = access_check JSON(res.body), res.status
      return_status ? [res.status, data] : data
    rescue JSON::ParserError
      message = "Invalid data, status #{res.status}, body: #{res.body}"
      raise SFRest::InvalidResponse, message
    end
def api_response(res, return_status = false)
      data = access_check JSON(res.body), res.status
      return_status ? [res.status, data] : data
    rescue JSON::ParserError
      message = "Invalid data, status #{res.status}, body: #{res.body}"
      raise SFRest::InvalidResponse, message
    end
Confirm that the result looks adequate
 @param [Excon::Response] res
 @param [Boolean] return_status If true returns the integer status
                  with the reponse
 @return [Array|Object] if return_status then [int, Object]
                        else Object