protected String getEndPointName(SessionContext zuulCtx) {
        if (zuulCtx.shouldSendErrorResponse()) {
            zuulCtx.setShouldSendErrorResponse(false);
            zuulCtx.setErrorResponseSent(true);
            String errEndPointName = zuulCtx.getErrorEndpoint();
            return Strings.isNullOrEmpty(errEndPointName) ? DEFAULT_ERROR_ENDPOINT.get() : errEndPointName;
        } else {
            return zuulCtx.getEndpoint();
        }
    }
This class is supposed to be thread safe and hence should not have any non final member variables
Created by saroskar on 5/18/17.
zuul-core/src/main/java/com/netflix/zuul/netty/filter/ZuulEndPointRunner.java