public static RpcResponse rpcResponse(StatusAndMetadata statusAndMetadata, @Nullable Object message) {
        final Status status = statusAndMetadata.status();
        if (status.isOk()) {
            return RpcResponse.of(message);
        } else {
            return RpcResponse.ofFailure(statusAndMetadata.asRuntimeException());
        }
    }
Returns a {@link RpcResponse} corresponding to the given {@link StatusAndMetadata}.
grpc/src/main/java/com/linecorp/armeria/internal/common/grpc/GrpcLogUtil.java