Errors

Failed API calls return an HTTP status code. Structured capability errors return their Hydracept error information in a detail object; some standard HTTP errors use a string or validation details in detail.

Typical statuses

StatusMeaning
400Invalid request / policy rejection
401Missing or invalid Hydracept API key / session
402Budget exceeded
403Your API key, project, or environment is not allowed to make this request
404Capability, job, or resource not found
409Conflict (including idempotency conflicts)
422Request validation failed
429Rate limited
503Provider unavailable

Structured capability errors

When an endpoint returns a structured capability error, its body has this shape:


{
  "detail": {
    "code": "BudgetExceeded",
    "message": "The request exceeds the configured budget"
  }
}

detail.code is the stable Hydracept error code. detail.message is a human-readable explanation. Validation failures may use a different detail shape.

Handle the HTTP status first. When detail.code is present, use that Hydracept value rather than provider-native error strings.

Idempotency

Durable job submits accept idempotencyKey. Replaying the same key with a conflicting payload returns 409 instead of creating a second job.