@Override
    public HttpResponseMessage apply(HttpRequestMessage request) {
        HttpResponseMessage resp = new HttpResponseMessageImpl(request.getContext(), request, 200);
        resp.setBodyAsText("healthy");

        // need to set this manually since we are not going through the ProxyEndpoint
        StatusCategoryUtils.setStatusCategory(request.getContext(), ZuulStatusCategory.SUCCESS);

        return resp;
    }
Healthcheck Sample Endpoint

Author: Arthur Gonigberg
Date: November 21, 2017
zuul-sample/src/main/java/com/netflix/zuul/sample/filters/endpoint/Healthcheck.java