Cloudflare

Slashing agent token costs by 98% with RFC 9457-compliant error responses

Mar 11, 2026Sam Marsh
Slashing agent token costs by 98% with RFC 9457-compliant error responses
SummaryAI, from the source post

Introduced RFC 9457-compliant structured error responses (Markdown and JSON) for AI agents encountering Cloudflare platform errors (1xxx-class). This replaces HTML error pages with machine-readable instructions, providing fields like `error_code`, `retryable`, `retry_after`, and `owner_action_required` to enable agents to make informed decisions about retrying, backing off, or escalating. This change dramatically reduces payload size and token usage (over 98% for 1015 errors) and is automatically applied across the network without customer configuration.

More from the Website Security & Threat Management trail