code: def _assert_response_success(self, response):
          
  
          if response.status_code != self._STATUS_CODE_OK:
              raise ExceptionFactory.create_exception_for_response(
                  response.status_code,
                  self._fetch_all_error_message(response),
                  self._fetch_response_id(response)
              )
docs: :type response: requests.Response
  
          :rtype: None
          :raise ApiException: When the response is not successful.