ApiException#

exception ApiException(status_code, reason_phrase, body=None, headers=None)#

Provides the exception to raise when the remote server returns an unsuccessful response.

For more information about the failure, inspect .status_code and .reason_phrase.

Parameters:
status_codeint

HTTP status code associated with the response.

reason_phrasestr

Description of the response provided by the server.

bodystr, optional

Content of the response provided by the server. The default is None.

headersCaseInsensitiveDict, optional

Response headers provided by the server. The default is None.