The default exception handler in the rest client currently only handles 404 and bundles everything else in together
if code < 400:
return None
elif code == 404:
return KeyError(str(response.json()))
else:
return BlueskyRemoteControlError(code, str(response))
It would be good to expand this to handle 401/403 as well as making 404 not a KeyError which only makes sense for certain requests.
The default exception handler in the rest client currently only handles
404and bundles everything else in togetherIt would be good to expand this to handle
401/403as well as making404not aKeyErrorwhich only makes sense for certain requests.