We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4efb003 commit a3b3019Copy full SHA for a3b3019
exception/code.go
@@ -24,6 +24,8 @@ const (
24
Forbidden = http.StatusForbidden
25
// NotFound 接口未找到
26
NotFound = http.StatusNotFound
27
+ // Conflict 资源冲突, 已经存在
28
+ Conflict = http.StatusConflict
29
30
// UnKnownException 未知异常
31
UnKnownException = 99999
@@ -33,6 +35,7 @@ var (
33
35
reasonMap = map[int]string{
34
36
Unauthorized: "认证失败",
37
NotFound: "资源未找到",
38
+ Conflict: "资源已经存在",
39
BadRequest: "请求不合法",
40
InternalServerError: "系统内部错误",
41
Forbidden: "访问未授权",
0 commit comments