Error represents a standardized API error
| 7 | |
| 8 | // Error represents a standardized API error |
| 9 | type Error struct { |
| 10 | Code int `json:"code"` // Error code |
| 11 | Msg string `json:"message"` // Error message |
| 12 | Details []string `json:"details,omitempty"` // Optional error details |
| 13 | HTTP int `json:"-"` // HTTP status code (not exposed in JSON) |
| 14 | DocRef string `json:"doc_ref,omitempty"` // Reference to documentation |
| 15 | } |
| 16 | |
| 17 | var codes = map[int]string{} |
| 18 |
nothing calls this directly
no outgoing calls
no test coverage detected