@Override
    public HttpResponse handle(HttpRequest request) {
        Path path = new Path(request.getUri());
        if (request.getMethod() != GET)
            return ErrorResponse.methodNotAllowed("Only GET is supported under /reindexing/v1/");

        if (path.matches("/reindexing/v1"))        return getRoot();
        if (path.matches("/reindexing/v1/status")) return getStatus();

        return ErrorResponse.notFoundError("Nothing at " + request.getUri().getRawPath());
    }
Allows inspecting reindexing status over HTTP.

@author jonmv
clustercontroller-reindexer/src/main/java/ai/vespa/reindexing/http/ReindexingV1ApiHandler.java