presto-main/src/main/java/io/prestosql/server/QueryResource.java/QueryResource/getQueryInfo
class QueryResource:    @GET
    @Path("{queryId}")
    public Response getQueryInfo(@PathParam("queryId") QueryId queryId)
    {
        requireNonNull(queryId, "queryId is null");

        Optional<QueryInfo> queryInfo = dispatchManager.getFullQueryInfo(queryId);
        if (queryInfo.isPresent()) {
            return Response.ok(queryInfo.get()).build();
        }
        return Response.status(Status.GONE).build();
    }