Versions in this module Expand all Collapse all v0 v0.6.2 Aug 10, 2020 Changes in this version + var AccessDenied = add(-403) + var Canceled = add(-498) + var Conflict = add(-409) + var Deadline = add(-504) + var LimitExceed = add(-509) + var MethodNotAllowed = add(-405) + var NotModified = add(-304) + var NothingFound = add(-404) + var OK = add(0) + var RequestErr = add(-400) + var ServerErr = add(-500) + var ServiceUnavailable = add(-503) + var TemporaryRedirect = add(-307) + var Unauthorized = add(-401) + func Equal(a, b Codes) bool + func EqualError(code Codes, err error) bool + func Register(cm map[int]string) + type Code int + func Int(i int) Code + func New(e int) Code + func String(e string) Code + func (e Code) Code() int + func (e Code) Details() []interface{} + func (e Code) Error() string + func (e Code) Message() string + type Codes interface + Code func() int + Details func() []interface{} + Error func() string + Message func() string + func Cause(e error) Codes + func FromProto(pbMsg proto.Message) Codes + type Status struct + func Error(code Code, message string) *Status + func Errorf(code Code, format string, args ...interface{}) *Status + func FromCode(code Code) *Status + func (s *Status) Code() int + func (s *Status) Details() []interface{} + func (s *Status) Error() string + func (s *Status) Message() string + func (s *Status) Proto() *types.Status + func (s *Status) WithDetails(pbs ...proto.Message) (*Status, error)