d5430fb0c1
The pinned mautrix 0.21.1 raises MatrixRequestError (carrying errcode and http_status) from HTTPAPI._send on every non-2xx and sync() returns only the parsed JSON dict, so the result-object auth branch in _sync_loop was unreachable; it dated from the nio client whose SyncError objects were real. Drop it together with the nio-mock test that pinned it. With structured attributes guaranteed, the leading-status regex and the bounded keyword scan over the message text were the only remaining ways for body digits or HTML words to leak into the verdict, so drop them too: no errcode/http_status auth signal means retry. Trim the contributor's 17 tests to the two loop-level invariants: both production repros (502 HTML body embedding "403" via an SVG coordinate; timeout echoing a since token embedding "401") keep looping, and a 401/M_UNKNOWN_TOKEN stops.