The health check returned 200 while every buyer submission failed
A buyer page returned 200. A health check read that status, declared the service healthy, and reported success every five minutes for a full evening. In the same window, every submission from that page failed.
The page was served by a CDN edge. The submission went to an origin tunnel that had died hours earlier.
Two different things behind one status code
A GET to a cached HTML page and a POST to a JSON API travel different paths. The CDN can answer the GET from cache with the last good copy, long after the origin stopped responding. The POST has no cache to fall back on, so it reaches the origin and returns whatever the origin returns. When the origin is a dead tunnel, the edge returns a 1033 error page.
So the same hostname answered 200 to the check and an error page to the buyer. Both responses were accurate about their own request. The check measured the wrong request.
Why the shortcut got added
An earlier incident had the reverse shape. The origin was dead and the health check was probing a path that the edge answered statically, so the check said healthy while the buyer page was down. The fix was to probe the buyer page instead, because it depends on the origin.
That fix was correct about which path to probe and wrong about which method to use. A cached GET does not prove the origin is up. The check improved and stayed broken at the same time.
The check that actually proves it
A POST that the origin has to answer with a specific value. In this case, a JSON-RPC tools list that must contain a named tool. That request cannot be satisfied from cache, cannot be satisfied by the edge, and cannot be satisfied by a dead tunnel. Either the origin answered with the expected content or it did not.
One POST every five minutes costs nothing and covers the exact path a buyer takes. A GET to the same page would have cost the same and proved nothing.
The paid section covers the exact request pair, the timeline that made the two failures look identical from the logs, and the general rule for writing a health check that measures the customer's request rather than the checker's.
Comments