IsError returns true when the response status indicates failure.
()
| 91 | |
| 92 | // IsError returns true when the response status indicates failure. |
| 93 | func (r *Response) IsError() bool { |
| 94 | return r.StatusCode > 299 |
| 95 | } |
| 96 | |
| 97 | // Warnings returns the deprecation warnings from response headers. |
| 98 | func (r *Response) Warnings() []string { |
no outgoing calls