github.com/machinefi/w3bstream@v1.6.5-rc9.0.20240426031326-b8c7c4876e72/pkg/depends/conf/jwt/error.go (about) 1 package jwt 2 3 import "net/http" 4 5 //go:generate toolkit gen status Error 6 type Error int 7 8 func (Error) ServiceCode() int { 9 return 999 * 1e3 10 } 11 12 const ( 13 Unauthorized Error = http.StatusUnauthorized*1e6 + iota + 1 14 // @errTalk Invalid Token 15 InvalidToken 16 // @errTalk Invalid Claim 17 InvalidClaim 18 )