error_code field and a human-readable message field that together tell you exactly what went wrong.
Always inspect the response body – not just the HTTP status code – when handling errors. The
error_code field provides the specific application-level reason for a failure, which is essential for writing correct error-handling logic and for troubleshooting issues in the Platform Portal.HTTP status codes
The following table lists every HTTP status code returned by the Tilta API, its type, and a description of when you will encounter it.Application-level error codes
When the HTTP status code alone is insufficient to describe the problem, use thecode field in the response body. The table below maps common codes to a cause and a recommended action.
Error response format
Every error response has the same shape: a machine-readablecode and a human-readable error.
issues array pinpointing each field. The path is prefixed with the part of the request it came from – body, params, querystring, or headers.
Error handling best practices
Error handling best practices
- Branch on
code, not on theerrortext. Theerrorstring is intended for logs and debugging and may change;codeis stable. - Distinguish retryable errors from terminal errors. Status codes
408and424indicate transient conditions and are safe to retry with exponential back-off. Codes400,401,404, and409indicate a problem with your request that will not resolve itself on retry. - Handle
409carefully. A conflict on creation means the resource may already exist. Query for the existing resource before deciding whether to create a new one. - Never silently swallow errors. Surface error codes to your operations team so that issues such as frozen facilities or blocked buyers can be actioned promptly.