Skip to main content
Ardent uses standard HTTP status codes. Error responses include a detail field with a human-readable message.
{
  "detail": "Project not found"
}
Validation errors may include structured field details from the request validator.

Status codes

StatusMeaningRetry?
400 Bad RequestRequired data is missing or invalidNo. Fix the request first
401 UnauthorizedMissing or invalid tokenNo. Refresh or replace the token
403 ForbiddenToken is valid but not allowed to perform the actionNo. Update access or use a different token
404 Not FoundResource was not found in the accessible scopeNo. Check the resource ID
409 ConflictThe request conflicts with current resource stateUsually no. Fetch current state and decide
422 Unprocessable EntityRequest body failed validationNo. Fix the request body
429 Too Many RequestsToo many requests in a short periodYes, with backoff
500/502/503Server or dependency errorYes, with bounded retry and alerting

Long-running operation failures

For async work, the HTTP request may succeed while the operation later fails. Always poll the operation and inspect status and error:
{
  "id": "op_123",
  "status": "failed",
  "stage": "connector_discovery",
  "error": "Preflight must pass before setup can continue"
}
Treat failed as terminal. Fix the cause and start a new operation or retry the supported CLI/API action.

Automation guidance

  • Fail loudly when required IDs, operation IDs, or branch URLs are missing.
  • Do not substitute production database URLs as a fallback.
  • Retry only transient failures, and cap retries.
  • Log request IDs or timestamps in your own systems so support can help correlate issues.