Errors
Errors come back as RFC 9457 problem documents with the content type application/problem+json. The type field is a
URL on this site that names the problem, so you can branch on it in code and open it in a browser.
{ "type": "https://docs.wardcase.com/errors/free-tier-limit", "title": "Free tier limit reached", "status": 402, "detail": "The free tier allows 2 sandboxes at once"}| Field | Meaning |
|---|---|
type | The problem type, one of the URLs below |
title | A short summary of the problem type |
status | The HTTP status code |
detail | What went wrong with this request |
instance | When present, identifies this occurrence. Include it when you write to business@wardcase.com. |
errors | For validation errors, a list of path and message pairs |
The SDKs turn these into typed errors with status, type, detail and code, the slug. They retry 429, 502 and 503
for you, and other 5xx responses when the request is safe to repeat. Errors and limits has the
details, every limit, and the errors the SDKs raise when no response arrives.
Problem types
Section titled “Problem types”| Type | Status | Meaning |
|---|---|---|
validation | 400 | Validation failed |
unauthorized | 401 | Missing or invalid credential |
forbidden | 403 | Missing scope |
not-found | 404 | Not found |
conflict | 409 | Conflict with the resource's state |
free-tier-limit | 402 | Free tier limit reached |
org-blocked | 403 | Organization blocked |
rate-limited | 429 | Too many requests |
no-capacity | 503 | No capacity in the region |
host-timeout | 504 | Host did not answer in time |
payload-too-large | 413 | Payload too large |
internal | 500 | Internal error |