You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
kratos/pkg/ecode/common_ecode.go

20 lines
674 B

6 years ago
package ecode
// All common ecode
var (
OK = add(0) // 正确
NotModified = add(-304) // 木有改动
TemporaryRedirect = add(-307) // 撞车跳转
RequestErr = add(-400) // 请求错误
Unauthorized = add(-401) // 未认证
AccessDenied = add(-403) // 访问权限不足
NothingFound = add(-404) // 啥都木有
MethodNotAllowed = add(-405) // 不支持该方法
Conflict = add(-409) // 冲突
ServerErr = add(-500) // 服务器错误
ServiceUnavailable = add(-503) // 过载保护,服务暂不可用
Deadline = add(-504) // 服务调用超时
LimitExceed = add(-509) // 超出限制
)