fn halt_from_api(e: ApiError, sync: RotationSyncState) -> Halt
Maps an API error to a halt: abort when the attempt or session is gone, else report Internal.
Internal