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_code
int
HTTP status code associated with the response.
- reason_phrase
str
Description of the response provided by the server.
- body
str
,optional
Content of the response provided by the server. The default is
None
.- headers
CaseInsensitiveDict
,optional
Response headers provided by the server. The default is
None
.
- status_code