sponge/internal/ecode/grpc_systemCode.go

26 lines
843 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 ecode
import (
"github.com/zhufuyi/sponge/pkg/errcode"
)
// nolint
// rpc系统级别错误码有status前缀
var (
StatusSuccess = errcode.StatusSuccess
StatusInvalidParams = errcode.StatusInvalidParams
StatusUnauthorized = errcode.StatusUnauthorized
StatusInternalServerError = errcode.StatusInternalServerError
StatusNotFound = errcode.StatusNotFound
StatusAlreadyExists = errcode.StatusAlreadyExists
StatusTimeout = errcode.StatusTimeout
StatusTooManyRequests = errcode.StatusTooManyRequests
StatusForbidden = errcode.StatusForbidden
StatusLimitExceed = errcode.StatusLimitExceed
StatusDeadlineExceeded = errcode.StatusDeadlineExceeded
StatusAccessDenied = errcode.StatusAccessDenied
StatusMethodNotAllowed = errcode.StatusMethodNotAllowed
)