Feature description_
It would be useful for upstream systems to be able to automatically determine the type of error and react accordingly. e.g.
429 For Too Many Requests
Temporary error - Retry periodically
401 Unauthorized
Raise as a permanent error to be resolved by operator
This could be achieved by including the HTTP error code within ClientConnectionException.
I have raised a pull request to add and populate the code on ClientConnectionException here #2295
Currently the only way to determine the error type is to parse the message within the Exception - which may be subject to change in future.
Feature description_
It would be useful for upstream systems to be able to automatically determine the type of error and react accordingly. e.g.
429 For Too Many Requests
Temporary error - Retry periodically
401 Unauthorized
Raise as a permanent error to be resolved by operator
This could be achieved by including the HTTP error code within ClientConnectionException.
I have raised a pull request to add and populate the code on ClientConnectionException here #2295
Currently the only way to determine the error type is to parse the message within the Exception - which may be subject to change in future.