Errors and retries
Use structured error codes and retryability instead of parsing human-readable messages.
Pre-admission errors
Authentication, validation, quota, rate-limit, and same-origin failures happen before provider admission and do not create billable work.
Durable failures
An admitted job can finish partial or failed. Inspect its status and structured error details before deciding whether to create new work.
Safe retries
Retry network failures with the original idempotency key. Apply bounded backoff and respect any Retry-After header.