Skip to content

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

Merged
alexluong merged 1 commit into
mainfrom
fix/max-destinations-400
Aug 4, 2026
Merged

fix: return 400 when max destinations per tenant is reached#1010
alexluong merged 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>
@alexluong
alexluong merged commit b0f45e8 into main Aug 4, 2026
3 checks passed
@alexluong
alexluong deleted the fix/max-destinations-400 branch August 4, 2026 09:31
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.

2 participants