AI draft failed
type | https://docs.frem.sh/reference/api/errors/ai-draft-failed |
| HTTP status | 502 Bad Gateway |
What it means
Your organisation’s AI provider did not return a usable custom secret pattern draft: it answered with an error, timed out, or its answer was not the expected JSON. HTTP 429 instead means the provider is rate limiting, or the organisation’s AI spend cap is reached. Nothing was saved.
What to do
Try again later, or write the pattern yourself. If it keeps failing, test the provider under AI integrations. See Draft a pattern with AI.
Response shape
All fremforge API errors are RFC 9457 problem+json:
{
"type": "https://docs.frem.sh/reference/api/errors/ai-draft-failed",
"title": "Bad Gateway",
"status": 502,
"detail": "..."
}Branch on type, not on title or detail - those are human-readable and may be reworded.