-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added raise_on_unexpected_status to user guide
- Loading branch information
Showing
1 changed file
with
13 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,14 @@ | ||
# SaaS API for Python User Guide | ||
|
||
## Raise Error on Response Status Code Other Than 200 | ||
|
||
The default behavior of the API client is to return a response with a status code and optionally an attribute `parsed` containing the returned data. | ||
|
||
If you want the client to raise an exception for each response with a status other than 200 then please provide optional keyword argument `raise_on_unexpected_status=True`: | ||
|
||
```python | ||
from exasol.saas.client.openapi.api.databases import list_databases | ||
|
||
client = AuthenticatedClient(host, token, raise_on_unexpected_status=True) | ||
databases = list_databases.sync(client) | ||
```` |