Merge pull request #2167 from Molecule-AI/fix/saas-federation-tutorial-409

docs(saas-federation): fix workspace-limit response code (409, not 402) (#1754)
This commit is contained in:
Hongming Wang 2026-04-27 11:36:02 +00:00 committed by GitHub
commit dc2f6bd378
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -185,7 +185,7 @@ curl -X PATCH https://api.moleculesai.app/cp/orgs/acme \
}'
```
When a tenant hits their workspace limit, `POST /workspaces` returns `402 Payment Required` with a message pointing them to upgrade.
When a tenant hits their workspace limit, `POST /workspaces` returns **`409 Conflict`** (not `402 Payment Required` — quota gates are resource-state conflicts, not payment failures, per RFC 9110). The response body's `error` field carries an upgrade hint.
---