MCPcopy Create free account
hub / github.com/ForestHubAI/edge-agents / APIError

Struct APIError

go/util/httpclient/client.go:58–63  ·  view source on GitHub ↗

APIError represents a standard error response from the API.

Source from the content-addressed store, hash-verified

56
57// APIError represents a standard error response from the API.
58type APIError struct {
59 Error struct {
60 Message string `json:"message"`
61 Type string `json:"type"`
62 } `json:"error"`
63}
64
65// Do sends a request and decodes the JSON response into the provided 'out'.
66// Pass a pointer as 'out' (e.g. &myStruct). If out is nil, the response body is discarded.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected