presto-proxy/src/main/java/io/prestosql/proxy/ProxyResource.java/ProxyResource/setupAsyncResponse
class ProxyResource:    private void setupAsyncResponse(AsyncResponse asyncResponse, ListenableFuture<Response> future)
    {
        bindAsyncResponse(asyncResponse, future, executor)
                .withTimeout(ASYNC_TIMEOUT, () -> Response
                        .status(BAD_GATEWAY)
                        .type(TEXT_PLAIN_TYPE)
                        .entity("Request to remote Presto server timed out after" + ASYNC_TIMEOUT)
                        .build());
    }