docstr: Custom error messages for exception
docstr_tok: ["Custom","error","messages","for","exception"]
code: def __str__(self):
      """Custom error messages for exception"""
      error_message = "({0})\n" "Reason: {1}\n".format(
          self.status, self.reason
      )
      if self.headers:
          error_message += "HTTP response headers: {0}\n".format(
              self.headers
          )
  
      if self.body:
          error_message += "HTTP response body: {0}\n".format(self.body)
  
      return error_message
  
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 2 for calling the ApiException obj's underlying member method code with example usage: obj.__str__() and returns: error_message