Searched refs:forCode (Results 1 – 2 of 2) sorted by relevance
52 assertNull(Http2Error.forCode(-1)); in http2ErrorForCode()53 assertSame(Http2Error.NO_ERROR, Http2Error.forCode(0)); in http2ErrorForCode()54 assertSame(Http2Error.HTTP_1_1_REQUIRED, Http2Error.forCode(0xD)); in http2ErrorForCode()55 assertNull(Http2Error.forCode(0xD + 1)); in http2ErrorForCode()61 assertSame(error, Http2Error.forCode(error.code())); in http2ErrorRoundTrip()
369 public static Http2Error forCode(long code) { in forCode() method in GrpcUtil.Http2Error387 Http2Error error = forCode(code); in statusForCode()