Skip to content

Improve default error handling #1409

Closed

Description

@tpoliaw

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.

Activity

  1. added
    onboarding
    c: client
    on Feb 23, 2026
  2. MManisha03 commented on Feb 23, 2026

    @MManisha03
  3. added a commit that references this issue on Feb 23, 2026
    892dfdd
  4. harshitnagar22 commented on Feb 23, 2026

    @harshitnagar22
  5. removed
    onboarding
    on Feb 23, 2026
  6. locked as spam and limited conversation to collaborators on Feb 26, 2026
  7. added
    onboarding
    on Feb 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    c: clientonboarding

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions