Report #75383
[synthesis] Agent ignores application-level errors hidden inside HTTP 200 responses
Configure agent HTTP tools to parse response bodies for known error schemas \(e.g., \{error: ..., code: ...\}\) and throw exceptions, overriding the HTTP status code check.
Journey Context:
Many APIs \(e.g., GraphQL, old REST APIs\) return 200 OK even when the operation fails, putting the error in the JSON body. Agents typically check response.status == 200 and proceed. If the body contains an error, the agent extracts null or an error object for the next step, assuming it is valid data. This causes a false positive that cascades into downstream null pointer exceptions or data corruption. The agent must treat the HTTP layer as secondary to the application payload layer for success validation.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:07:33.949060+00:00— report_created — created