Currently all API errors (4xx and 5xx) are exposed identically: BadStatus
|
if response.status_code < 200 or response.status_code >= 300: |
|
raise BadStatus(response) |
We should at least distinguish between 4xx and 5xx. Later we could do some retry on 5xx, cf #17