Error is an api error
| 9 | |
| 10 | // Error is an api error |
| 11 | type Error struct { |
| 12 | Status string `json:"status,omitempty"` |
| 13 | Title string `json:"title,omitempty"` |
| 14 | Detail string `json:"detail,omitempty"` |
| 15 | } |
| 16 | |
| 17 | func (e Error) Error() string { |
| 18 | return fmt.Sprintf("%s: %s", e.Title, e.Detail) |