Commit f75cf751 authored by zhouzihao's avatar zhouzihao

dev-超时请求检测

parent 30ac403a
......@@ -10,7 +10,7 @@ public enum ErrStatus {
*/
Err4xx,
/**
* 超时错误
* 超时错误 408
*/
ErrTimeout,
/**
......
......@@ -62,6 +62,9 @@ public class Signature {
}
public static ErrStatus matchStatus(int status) {
if (status == 408){
return ErrStatus.ErrTimeout;
}
if (status >= 400 && status < 500) {
return ErrStatus.Err4xx;
} else if (status >= 500 && status < 600) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment