<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim" -->

---
title: Slashing agent token costs by 98% with RFC...
description: Cloudflare now returns RFC 9457-compliant structured error responses (JSON and Markdown) to AI agents instead of HTML error pages. By sending an appropriate...
canonical: https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Slashing agent token costs by 98% with RFC 9457-compliant error responses | daily.dev
og:description: Cloudflare now returns RFC 9457-compliant structured error responses (JSON and Markdown) to AI agents instead of HTML error pages. By sending an appropriate...
og:url: https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim
og:image: https://api.daily.dev/og/posts/sAQpbciiM.png
og:image:alt: Slashing agent token costs by 98% with RFC 9457-compliant error responses
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

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

**[Cloudflare](https://daily.dev/sources/cloudflare)** · 12 min read · 1 upvotes · 0 comments

## Summary

Cloudflare now returns RFC 9457-compliant structured error responses (JSON and Markdown) to AI agents instead of HTML error pages. By sending an appropriate Accept header (text/markdown, application/json, or application/problem+json), agents receive compact, machine-readable payloads with actionable fields like retryable, retry_after, and owner_action_required. This reduces payload size and token usage by over 98% compared to HTML. The feature is live network-wide with no configuration required from site owners, covering all 1xxx-class Cloudflare error codes, with 4xx/5xx coverage planned next. A Python example demonstrates how agents can parse YAML frontmatter to implement deterministic retry and escalation logic.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://blog.cloudflare.com/rfc-9457-agent-error-pages/>

## Similar posts on daily.dev

- [Cloudflare Debuts Markdown for Agents and Content Signals to Guide AI Crawlers](https://daily.dev/posts/cloudflare-debuts-markdown-for-agents-and-content-signals-to-guide-ai-crawlers-xrnlmy5s5) · InfoQ · 1 upvotes · 0 comments
- [Your API Passes Every Test and Is Invisible to Agents](https://daily.dev/posts/your-api-passes-every-test-and-is-invisible-to-agents-jb2ni9hhy) · Dev Genius · 0 upvotes · 0 comments
- [Cloudflare’s new Markdown support shows how the web is evolving for AI agents](https://daily.dev/posts/cloudflare-s-new-markdown-support-shows-how-the-web-is-evolving-for-ai-agents-q2znpd5ib) · The New Stack · 2 upvotes · 0 comments
- [Introducing the Agent Readiness score. Is your site agent-ready?](https://daily.dev/posts/introducing-the-agent-readiness-score-is-your-site-agent-ready--qmivrcleo) · Cloudflare · 1 upvotes · 0 comments

---

Tags: [#ai-agents](https://daily.dev/tags/ai-agents), [#cloudflare](https://daily.dev/tags/cloudflare)

[View this post on daily.dev](https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Slashing agent token costs by 98% with RFC 9457-compliant error responses","url":"https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim"},"datePublished":"2026-03-11T13:22:23.417Z","dateModified":"2026-03-11T13:22:48.301Z","description":"Cloudflare now returns RFC 9457-compliant structured error responses (JSON and Markdown) to AI agents instead of HTML error pages. By sending an appropriate...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2ed6635deb8511c288afa47423cb3262?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/2ed6635deb8511c288afa47423cb3262?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Cloudflare","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Cloudflare","logo":"https://media.daily.dev/image/upload/t_logo,f_auto/v1/logos/38522e1d11354cd6b7af66f9d4316735","url":"https://daily.dev/sources/cloudflare"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/slashing-agent-token-costs-by-98-with-rfc-9457-compliant-error-responses-saqpbciim","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"ai-agents,cloudflare","timeRequired":"PT12M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Cloudflare","item":"https://daily.dev/sources/cloudflare"},{"@type":"ListItem","position":3,"name":"Slashing agent token costs by 98% with RFC 9457-compliant error responses"}]}
```

