# Step 10 — make x402 actually return 402

Publishing /.well-known/x402.json is not enough: the protected route itself must answer HTTP 402 with the full accepts[] set when no X-PAYMENT header is present. If /api/v1 returns 200, the check fails — proxy that path to the paid resource and pass the upstream status through verbatim.

Canonical: https://robauto.ai/learn/advanced-agentic-commerce/12

_Advanced Agentic Commerce: Ship the Full Agent Surface — lesson 12 of 20 (PLAYBOOK)_

Publishing /.well-known/x402.json is not enough: the protected route itself must answer HTTP 402 with the full accepts[] set when no X-PAYMENT header is present. If /api/v1 returns 200, the check fails — proxy that path to the paid resource and pass the upstream status through verbatim.

Source: [x402 documentation](https://docs.x402.org?utm_source=robauto)

[Previous lesson](/learn/advanced-agentic-commerce/11) · [Next lesson](/learn/advanced-agentic-commerce/13) · [Course overview](/learn/advanced-agentic-commerce) · [All courses](/learn)

---

(c) 2026 Robauto, Inc. — support@robauto.ai
Machine surfaces: https://robauto.ai/llms.txt · https://robauto.ai/llms-full.txt · https://robauto.ai/.well-known/api-catalog
