Skip to main content
When a request fails, the API returns a JSON error object with a machine-readable code, a human-readable message, and the HTTP status code.

Error format

Error codes

Handling errors

  • 400: Check your request body, query parameters, or file uploads against the API reference.
  • 401: Verify your API key is correct and active.
  • 402: Your credit balance has hit zero or gone negative. Check your balance via GET /billing/balance and contact support to top up.
  • 403: Your account has been permanently terminated. This is not recoverable via the API.
  • 404: Confirm the job ID is correct and was created under your account.
  • 429: Back off and retry. Use exponential backoff with jitter.
  • 500/503: Retry after a short delay. If the error persists, contact support@omnifence.ai.