The default exception handler in the rest client currently only handles `404` and bundles everything else in together ```python 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.
Activity
MManisha03 commentedon Feb 23, 2026
Improve HTTP error handling for 401/403 and replace KeyError for 404
harshitnagar22 commentedon Feb 23, 2026
chore: Improve default error handling (DiamondLightSource#1491)