code: def __init__(self, status=None, reason=None, http_resp=None):
      if http_resp:
          self.status = http_resp.status
          self.reason = http_resp.reason
          self.body = http_resp.data
          self.headers = http_resp.getheaders()
      else:
          self.status = status
          self.reason = reason
          self.body = None
          self.headers = None
  
imports: from __future__ import absolute_import
  import io
  import json
  import logging
  import re
  import ssl
  import certifi
  import six
  from six.moves.urllib.parse import urlencode
label_desc: Use image node_id 1 to create a new ApiException object from inherited base classes: Exception with example: obj = ApiException(status, reason, http_resp)