From 6693cfe68f409bff257046af86a484ad81ced70e Mon Sep 17 00:00:00 2001 From: fancl Date: Thu, 24 Aug 2023 11:02:47 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9http?= =?UTF-8?q?=E7=8A=B6=E6=80=81=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- entry/http/error.go | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) diff --git a/entry/http/error.go b/entry/http/error.go index e9fe891..6cdf0f1 100644 --- a/entry/http/error.go +++ b/entry/http/error.go @@ -3,11 +3,17 @@ package http const ( ErrAccessDenied = 4003 //拒绝访问 ErrPermissionDenied = 4004 //没有权限 - ErrInvalidRequest = 4005 //请求无效或不合法 + ErrIllegalRequest = 4005 //非法请求 ErrInvalidPayload = 4006 //请求数据无效 - ErrResourceCreate = 8001 //资源创建失败 - ErrResourceUpdate = 8002 //资源更新失败 - ErrResourceDelete = 8003 //资源删除失败 - ErrResourceNotFound = 8004 //资源未找到 - ErrTemporaryUnavailable = 8006 //临时性不可用 + ErrResourceCreate = 4101 //资源创建失败 + ErrResourceUpdate = 4102 //资源更新失败 + ErrResourceDelete = 4103 //资源删除失败 + ErrResourceNotFound = 4104 //资源未找到 + ErrResourceEmpty = 4105 //资源为空 + ErrResourceExpired = 4107 //资源已失效 + ErrResourceUnavailable = 4108 //资源无法使用 + ErrResourceLocked = 4109 //资源已被锁定 + ErrServerUnreachable = 4201 //服务不可用 + ErrTemporaryUnavailable = 4202 //临时性失败 + ErrFatal = 4204 //致命错误 )