# Mini error-contract audit — 4 public no-key APIs (2026-11-29) All official docs fetched live on 2026-11-29; all four doc links re-checked HTTP 200 at delivery time. Live probes: 2026-11-29T09:06:15Z, one deliberately wrong request per API, no auth bypass, no load testing. ## Result | API | Documented error | Live result | Verdict | |---|---|---|---| | Frankfurter | "The API returns standard HTTP status codes with a JSON body." Example: `{"status": 422, "message": "invalid currency: ABC"}`; "`404` Currency, rate, or resource not found." — https://frankfurter.dev/ | `GET /v1/latest?base=ABC` → `404`, body verbatim: `{"message":"not found"}` | mismatched (doc example 422, live 404; `message` key matched) | | OpenAlex | "Error responses include a message explaining what went wrong:" `{"error": "Invalid filter", "message": "Unknown filter field: author_name. Did you mean: authorships.author.id?"}`; `400` Bad Request — https://help.openalex.org/api/errors/ | `GET /works?filter=not_a_real_field:xyz` → `400`, body excerpt verbatim: `{"error":"Invalid query parameters error.","message":"not_a_real_field is not a valid field.` | matched | | ExchangeRate-API | "Successful responses will show `success` for the `result` field. In the event that there is an error in serving the response this field will state `error` and another field called `error-type` with further information will be returned." — https://www.exchangerate-api.com/docs/free | `GET /v6/latest/ZZZ` → `200`, body verbatim: `{"result":"error","error-type":"unsupported-code"}` | matched | | ipapi.co | "Additional possible errors with a HTTP `200` status code have a response in the following format :" `{ "error": true, "reason": "...", "ip": "..."}`; example reason `Invalid IP Address` — https://ipapi.co/api/ | `GET /invalid/json/` → `200`, body verbatim: `{ "ip": "invalid", "error": true, "reason": "Invalid IP Address" }` | matched | ## Context **Frankfurter.** The docs' invalid-currency example returns `422`, but a non-existent `base=ABC` is treated as a missing resource and returns `404`; the `message` key is stable, the status code is not. Treat `404`/`422` as the same failure class in client code. **OpenAlex.** An unknown filter returns the documented `error` + `message` shape and the documented `400`; the `message` text is a long list of valid fields, so log only the prefix or parse it. Error responses cost no daily credits, per the same docs page. **ExchangeRate-API.** The open-access endpoint deliberately answers `200` with a machine-readable error body instead of a 4xx, so a client that only checks HTTP status will silently treat `ZZZ` as a successful conversion. Check `result` first. **ipapi.co.** Another `200`-on-error design: an invalid IP yields `error: true` and a human-readable `reason`. The body is pretty-printed JSON with the same three keys as the documented format, so key-based parsing works.