From 2bd9debe1829fdce93c62028aa97716a1cb2defe Mon Sep 17 00:00:00 2001
From: fengjin <1435304038@qq.com>
Date: 星期二, 19 九月 2023 10:34:22 +0800
Subject: [PATCH] 一帕拉功能(一边想四月里大哥一边写的)
---
springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/HttpStatus.java | 19 +++++++++++++++++--
1 files changed, 17 insertions(+), 2 deletions(-)
diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/HttpStatus.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/HttpStatus.java
index 47753b3..969e669 100644
--- a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/HttpStatus.java
+++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/HttpStatus.java
@@ -5,8 +5,13 @@
*
* @author huanghongfa
*/
-public class HttpStatus
-{
+public class HttpStatus {
+
+ /**
+ * 正常
+ */
+ public static final int NORMAL = 0;
+
/**
* 操作成功
*/
@@ -73,6 +78,11 @@
public static final int CONFLICT = 409;
/**
+ * 请求主体的大小超过了服务器
+ */
+ public static final int REQUEST_TOO_LARGE = 413;
+
+ /**
* 不支持的数据,媒体类型
*/
public static final int UNSUPPORTED_TYPE = 415;
@@ -86,4 +96,9 @@
* 接口未实现
*/
public static final int NOT_IMPLEMENTED = 501;
+
+ /**
+ * 暂不支持
+ */
+ public static final int NOT_ACCEPTABLE = 406;
}
--
Gitblit v1.7.1