invalid_request | HTTP 400, 405, 413, 422 for request validation; failed execution for admission validation | No | Correct the request, headers, or input asset. After a terminal failure, a deliberate new attempt needs its own key. |
authentication_failed | 401 | No | Replace an invalid or revoked API key. A missing Authorization header returns 422 invalid_request. |
access_denied | HTTP 403 for access checks before acceptance; failed execution for later admission denial | No | Check account access and canonical execution state before deciding on a new attempt. |
resource_not_found | 404 | No | Check the opaque ID and the account that owns it. |
insufficient_credits | Failed execution after acceptance | No | Add credits before deliberately creating a new attempt after terminal failure. |
conflict | 409 | No | Read canonical state. Do not reuse one idempotency key for a different body. |
too_many_active_jobs | Not exposed during managed admission; execution stays queued | Service retries | Keep following the existing execution. Do not resubmit to obtain a slot. |
rate_limited | HTTP 429 for request or stream limits; admission throttling stays queued | Yes | Back off on HTTP rejection; follow accepted work. Replay only an uncertain submission with its original body and key. |
quota_exceeded | Failed execution after acceptance | No | Wait for the documented quota window or ask the account owner to review the limit. |
content_refused | Job failure | No | Change the request. |
temporarily_unavailable | 500, 502, 503, 504, or job failure | Yes | Back off and inspect canonical state before retrying. |
generation_failed | Job failure | No | Inspect the request ID and contact support if the request should succeed. |
prompt_policy_blocked | 422 | No | Restricted product hosts only. The message names the block category (minors, drug or medication references, listed characters). Adult clothing, underwear and nudity edits on an adult are not blocked here; the image provider’s own safety system decides them and a refusal is reported as content_refused. |
feature_unavailable | 403 | No | Restricted product hosts only. The capability is not offered on that host; use the primary DreamLayer host. |