MCPcopy Create free account
hub / github.com/goadesign/goa / ErrorResponse

Struct ErrorResponse

http/error.go:16–29  ·  view source on GitHub ↗

ErrorResponse is the default data structure encoded in HTTP responses that correspond to errors created by the generated code. This struct is mainly intended for clients to decode error responses.

Source from the content-addressed store, hash-verified

14 // that correspond to errors created by the generated code. This struct is
15 // mainly intended for clients to decode error responses.
16 ErrorResponse struct {
17 // Name is a name for that class of errors.
18 Name string `json:"name" xml:"name" form:"name"`
19 // ID is the unique error instance identifier.
20 ID string `json:"id" xml:"id" form:"id"`
21 // Message describes the specific error occurrence.
22 Message string `json:"message" xml:"message" form:"message"`
23 // Temporary indicates whether the error is temporary.
24 Temporary bool `json:"temporary" xml:"temporary" form:"temporary"`
25 // Timeout indicates whether the error is a timeout.
26 Timeout bool `json:"timeout" xml:"timeout" form:"timeout"`
27 // Fault indicates whether the error is a server-side fault.
28 Fault bool `json:"fault" xml:"fault" form:"fault"`
29 }
30
31 // Statuser is implemented by error response object to provide the response
32 // HTTP status code.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected