()
| 45 | var _ httpapiconstraints.IsUnauthorizedError = (*NotAuthorizedError)(nil) |
| 46 | |
| 47 | func (e NotAuthorizedError) Error() string { |
| 48 | var detail string |
| 49 | if e.Err != nil { |
| 50 | detail = ": " + e.Err.Error() |
| 51 | } |
| 52 | return "unauthorized" + detail |
| 53 | } |
| 54 | |
| 55 | // IsUnauthorized implements the IsUnauthorized interface. |
| 56 | func (NotAuthorizedError) IsUnauthorized() bool { |
no outgoing calls