MCPcopy
hub / github.com/lxc/incus / errorResponse

Struct errorResponse

internal/server/response/response.go:264–267  ·  view source on GitHub ↗

Error response.

Source from the content-addressed store, hash-verified

262
263// Error response.
264type errorResponse struct {
265 code int // Code to return in both the HTTP header and Code field of the response body.
266 msg string // Message to return in the Error field of the response body.
267}
268
269// ErrorResponse returns an error response with the given code and msg.
270func ErrorResponse(code int, msg string) Response {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected