File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
library/src/main/java/com/qiniu/android/collect Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -121,7 +121,7 @@ public static String requestReportErrorType(ResponseInfo responseInfo){
121121 String errorType = null ;
122122 if (responseInfo .statusCode > 199 && responseInfo .statusCode < 300 ) {
123123
124- } else if (responseInfo .statusCode > 299 && responseInfo . statusCode < 600 ){
124+ } else if (responseInfo .statusCode > 299 ){
125125 errorType = "response_error" ;
126126 } else if (responseInfo .statusCode == ResponseInfo .NetworkError ){
127127 errorType = "network_error" ;
@@ -162,7 +162,10 @@ public static String qualityResult(ResponseInfo responseInfo){
162162
163163 if (responseInfo .statusCode > 199 && responseInfo .statusCode < 300 ) {
164164 result = "ok" ;
165- } else if (responseInfo .statusCode > 399 && responseInfo .statusCode < 500 ) {
165+ } else if (responseInfo .statusCode > 399 &&
166+ (responseInfo .statusCode < 500 || responseInfo .statusCode == 573 || responseInfo .statusCode == 579 ||
167+ responseInfo .statusCode == 608 || responseInfo .statusCode == 612 || responseInfo .statusCode == 614 || responseInfo .statusCode == 630 || responseInfo .statusCode == 631 ||
168+ responseInfo .statusCode == 701 )) {
166169 result = "bad_request" ;
167170 } else if (responseInfo .statusCode == ResponseInfo .ZeroSizeFile ){
168171 result = "zero_size_file" ;
You can’t perform that action at this time.
0 commit comments