Skip to content

Implement RateLimitError #19

@codebestia

Description

@codebestia

Description

Raised on HTTP 429 responses when retries are exhausted or disabled. Exposes retry_after (seconds) so the caller can implement their own wait logic.

Proposed Steps

  • Define RateLimitError(ShadeError) in errors.py.
  • Add retry_after: Optional[int] attribute.
  • The HTTP client populates this from the Retry-After header before raising.

Acceptance Criteria

  • A 429 response raises RateLimitError.
  • error.retry_after reflects the Retry-After header value.
  • When Retry-After is absent, error.retry_after is None.

Metadata

Metadata

Assignees

No one assigned

    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