MCPcopy Create free account
hub / github.com/NoFxAiOS/nofx / APIErrorResponse

Struct APIErrorResponse

api/errors.go:11–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

9)
10
11type APIErrorResponse struct {
12 Error string `json:"error"`
13 ErrorKey string `json:"error_key,omitempty"`
14 ErrorParams map[string]string `json:"error_params,omitempty"`
15}
16
17func writeAPIError(c *gin.Context, statusCode int, publicMsg, errorKey string, errorParams map[string]string) {
18 resp := APIErrorResponse{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected