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.
| 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. |
nothing calls this directly
no outgoing calls
no test coverage detected