@Override
    public void handle(String pathInContext, Request baseRequest,
                       HttpServletRequest request, HttpServletResponse response) throws IOException {
        response.sendError(_status, "Pre-defined error fetching: " + pathInContext);
    }
Reponse handler that always returns a fixed status code.
crawler-commons/src/test/java/achecrawler/crawler/crawlercommons/test/FixedStatusResponseHandler.java