diff --git a/webmagic-core/src/main/java/us/codecraft/webmagic/Page.java b/webmagic-core/src/main/java/us/codecraft/webmagic/Page.java index c11df693c..a342d3759 100644 --- a/webmagic-core/src/main/java/us/codecraft/webmagic/Page.java +++ b/webmagic-core/src/main/java/us/codecraft/webmagic/Page.java @@ -59,6 +59,7 @@ public Page() { public static Page fail(){ Page page = new Page(); page.setDownloadSuccess(false); + page.setStatusCode(1000); return page; }