public static TriRpcStatus fromCode(int code) {
        return fromCode(Code.fromCode(code));
    }
@Test
    void fromCode() {
        Assertions.assertEquals(Code.UNKNOWN, TriRpcStatus.fromCode(2).code);
        try {
            TriRpcStatus.fromCode(1000);
            fail();
        } catch (Throwable t) {
            // pass
        }
    }