Skip to content

Conversation

@david-kunz-myriad
Copy link

Summary

Adds missing HTTP status code mappings in the Vertex AI client's _make_status_error method to ensure consistent error handling with the main Anthropic client.

Changes

  • Added mapping for 413 status code to RequestTooLargeError
  • Added mapping for 529 status code to OverloadedError

Background

The Vertex AI client was missing mappings for these error types that are already defined in _exceptions.py and used by other clients in the SDK. This ensures that users get the appropriate exception types rather than generic APIStatusError or InternalServerError instances when these status codes are returned.

These error types are already defined in the main exceptions module and used consistently across other parts of the SDK.

@david-kunz-myriad david-kunz-myriad requested a review from a team as a code owner August 15, 2025 09:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant