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
  
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