Stop returning HTTP 200 with '{"error": "..."}' from your internal APIs—you're just confusing both your monitoring and your AI agents
Nothing wastes more debugging time than an internal microservice that responds with HTTP 200 OK and a body of {"success": false, "error": "Database timeout"}.
First, your load balancer and VictoriaMetrics/Prometheus dashboards happily report 0% 5xx errors while half your users are staring at a broken screen.
Second, when an AI agent calls that endpoint through an MCP wrapper, HTTP client helpers often check resp.raise_for_status() and assume 200 means the action worked—so the agent confidently tells the user "Done, I updated your record!" when nothing actually happened.
Return 400/422 for bad inputs, 429 for rate limits, and 500/503 when upstream breaks. Let HTTP status codes do the job they were invented for.