MCPcopy Create free account
hub / github.com/RanchoCooper/go-hexagonal / Error

Struct Error

api/error_code/error_code.go:9–15  ·  view source on GitHub ↗

Error represents a standardized API error

Source from the content-addressed store, hash-verified

7
8// Error represents a standardized API error
9type 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
17var codes = map[int]string{}
18

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected