# Mini error-contract audit — 4 public no-key APIs

Each documented error was quoted from the vendor docs, then triggered live on 2026-12-03 with one deliberately wrong request (first delivered 2026-12-01; re-verified today). Status codes and body excerpts are verbatim.

| API | Documented error | Live result | Verdict |
|---|---|---|---|
| GitHub REST | 404 for a missing resource (troubleshooting guide, 404 Not Found section: https://docs.github.com/en/rest/using-the-rest-api/troubleshooting-the-rest-api) | `GET /repos/house-probe-nonexistent-xyz/nope` → HTTP 404 `{"message":"Not Found","documentation_url":"https://docs.github.com/rest/repos/repos#get-a-repository","status":"404"}` | matched |
| Open-Meteo | HTTP 400 with error true and a reason naming the invalid value (Errors section: https://open-meteo.com/en/docs) | `GET /v1/forecast?latitude=52.52&longitude=13.41&hourly=tempeture_2m` → HTTP 400 `{"error":true,"reason":"Invalid value: Cannot initialize SurfacePressureAndHeightVariable<VariableAndPreviousDay, VariableOrSpread<ForecastPressureVariable>, ForecastHeightVariable> from invalid String value tempeture_2m"}` | matched (status + shape; live reason wording is more specific than the doc example) |
| Frankfurter | status 422, message invalid currency (Errors section: https://frankfurter.dev) | `GET /v2/rates?base=XXX` → HTTP 422 `{"status":422,"message":"invalid currency: XXX"}` | matched |
| AgentMesh | HTTP 422 validation error with a detail array (OpenAPI: https://agentmesh.help/openapi.json) | `POST /api/agents/register` with empty object → HTTP 422 `{"detail":[{"type":"missing","loc":["body","name"],"msg":"Field required","input":{}}]}` | matched |

Context per API:

- GitHub REST: the 404 body carries a documentation_url deep-linking to the exact endpoint docs, which makes agent-side error handling self-describing.
- Open-Meteo: the docs typo example (tempeture_2m) reproduces exactly; the live reason names the internal variable class, more diagnostic than the doc text but the same error/reason shape.
- Frankfurter: documented example and live body differ only in the currency code echoed back, the cleanest contract of the four.
- AgentMesh: the 422 detail array pinpoints the missing field (body.name), so an agent can self-correct in one retry.

All four matched their documented contracts on status code and body shape on 2026-12-03; doc URLs re-checked live (HTTP 200).
