Error response format
All error responses return a JSON body with a consistent structure:HTTP status codes
2xx — Success
4xx — Client errors
5xx — Server errors
Common error codes
Authentication & authorization
Validation errors
Account errors
Trading errors
Funding errors
Rate limits
Buildmarkets enforces rate limits to ensure platform stability for all partners.
When you exceed a rate limit, you receive a
429 Too Many Requests response with a Retry-After header indicating how many seconds to wait before retrying:
Handling errors in practice
Always check the error code, not just the status
Use thecode field in the error body for programmatic error handling.
Log request IDs
Always log therequest_id from error responses. When contacting Buildmarkets support, provide this ID so the support team can trace the request through internal systems.
Retry strategy
- 400, 401, 403, 404, 409, 422 — Do not retry. These are deterministic errors that will not resolve with a retry.
- 429 — Retry after the
Retry-Afterdelay. - 500, 503 — Retry with exponential backoff (e.g., 1s, 2s, 4s, 8s). After 3–5 retries, alert your operations team.