CLOUDFLARE has introduced RFC 9457-compliant error responses to AI agents, replacing heavyweight HTML pages with machine-readable Markdown and JSON payloads for all 1xxx-class errors. When an agent sends an Accept header such as text/markdown, application/json, or application/problem+json and encounters a Cloudflare error, a single semantic contract with actionable guidance is returned instead of HTML.
The structured responses dramatically reduce payload size and token usage—by more than 98% in tests against a rate-limit error (1015)—and provide fields like error_code, error_name, error_category, retryable, retry_after, owner_action_required, and more to drive deterministic backoff and escalation logic. The system is live across Cloudflare’s network and requires no configuration by site owners, with Markdown and JSON formats supported and next extending to 4xx and 5xx errors.
Real-world use cases include handling rate limits, geo restrictions, and WAF blocks with clear guidance for agents, backoff strategies, and potential escalation.