You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the response is not success (i.e not HTTP2xx) the library throws a urllib HTTPError.
For clients consuming this library, they now need to know that it was implemented in urllib, import that module into their application and handle the error.
Ideally, a consuming application only needs to know about python-http-client and not how urllib was implemented in order to handle common place http errors.
Steps to Reproduce
make an api call that returns anything other than HTTP2xx
attempt to handle error raised without importing urllib and without doing a catch all.