sponge/pkg/errcode/http_system_code.go

21 lines
811 B
Go
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

package errcode
// nolint
// http系统级别错误码无Err前缀
var (
Success = NewError(0, "ok")
InvalidParams = NewError(100001, "参数错误")
Unauthorized = NewError(100002, "认证错误")
InternalServerError = NewError(100003, "服务内部错误")
NotFound = NewError(100004, "资源不存在")
AlreadyExists = NewError(100005, "资源已存在")
Timeout = NewError(100006, "超时")
TooManyRequests = NewError(100007, "请求过多")
Forbidden = NewError(100008, "拒绝访问")
LimitExceed = NewError(100009, "访问限制")
DeadlineExceeded = NewError(100010, "已超过最后期限")
AccessDenied = NewError(100011, "拒绝访问")
MethodNotAllowed = NewError(100012, "不允许使用的方法")
)