Skip to content

fix: return 400 when max destinations per tenant is reached#1010

Open
alexluong wants to merge 1 commit into
mainfrom
fix/max-destinations-400
Open

fix: return 400 when max destinations per tenant is reached#1010
alexluong wants to merge 1 commit into
mainfrom
fix/max-destinations-400

Conversation

@alexluong

Copy link
Copy Markdown
Collaborator

Creating a destination past MAX_DESTINATIONS_PER_TENANT fell through handleUpsertDestinationError to a generic 500. Maps ErrMaxDestinationsPerTenantReached to 400 with the sentinel's message, matching the duplicate-destination case: {"status": 400, "message": "maximum number of destinations per tenant reached"}.

🤖 Generated with Claude Code

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
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