()
| 215 | } |
| 216 | |
| 217 | func (e apiError) Error() string { |
| 218 | return fmt.Sprintf("code: %v, reason: %s", e.Code, e.Message) |
| 219 | } |
| 220 | |
| 221 | func (r *RESTClient) statusCodeToError(op string, resp *http.Response) error { |
| 222 | if resp.Header.Get("Content-Type") == "application/json" { |
no outgoing calls