Errors
HTTP status codes and error format.
Truehost APIs use conventional HTTP status codes and return a JSON error body.
{
"error": {
"code": "domain_unavailable",
"message": "The domain example.com is not available for registration.",
"request_id": "req_8f2c1a"
}
}
| Status | Meaning |
|---|---|
| 400 | The request was malformed or failed validation |
| 401 | Missing or invalid API key |
| 403 | The key does not have the required scope |
| 404 | The resource does not exist |
| 409 | Conflict with the current state of the resource |
| 429 | Rate limit reached. Retry after the Retry-After header |
| 5xx | Something went wrong on our side. Retry with backoff |
Still need help?Open a support ticket