Website API error handling for per-domain checks: handle 402 balance errors, unknowns, timeouts and refunds, with a retry policy and a reusable state model.