@ VisibleForTesting static Status toGrpcStatus ( ErrorCode code ) { Status status = ERROR_CODE_TO_STATUS . get ( code ) ; return status != null ? status : Status . UNKNOWN . withDescription ( "Unknown http2 error code: " + code . httpCode ) ; }
Returns a Grpc status corresponding to the given ErrorCode .