(resp *http.Response)
| 1750 | } |
| 1751 | |
| 1752 | func (c *Client) parseError(resp *http.Response) error { |
| 1753 | body, _ := io.ReadAll(resp.Body) |
| 1754 | return parseErrorBody(resp.StatusCode, body) |
| 1755 | } |
| 1756 | |
| 1757 | // parseErrorBody decodes an error response whose body has already been |
| 1758 | // read. Split out of parseError so callers that need the raw bytes for |
no test coverage detected