Skip to content

Improve error messages for common auth failures #38

@George-iam

Description

@George-iam

When auth fails (wrong API key, expired token), the SDK returns raw HTTP error details. Users would benefit from clearer error messages.

What needs to happen:

  • Catch 401/403 responses and raise typed exceptions (AuthenticationError, AuthorizationError)
  • Include actionable messages: "API key invalid — check AXME_API_KEY or run axme login"
  • Add tests

Small, focused improvement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions