Skip to content
Playcut Docs

Errors

All errors return JSON with statusCode and message.

{
"statusCode": 422,
"message": "Your prompt contains content we can't generate. Please rephrase and try again.",
"error": "Unprocessable Entity"
}
StatusMeaningAction
400Bad request — invalid inputFix the request body
401Unauthorized — missing or invalid keyCheck your API key
403Forbidden — insufficient permissionsUpgrade plan or check role
404Not foundCheck the resource ID
422Prompt safety rejectionRephrase your prompt
429Rate limit exceededWait Retry-After seconds
500Internal server errorRetry; contact support if persistent

Tasks can fail asynchronously. When status === "FAILED", the task document includes an error field:

{
"id": "task_abc123",
"status": "FAILED",
"error": {
"code": "MODEL_ERROR",
"message": "The model returned no output. Try a different prompt.",
"retryable": true
}
}

retryable: true means you can resubmit the same prompt without modification.