HandleHTTPError parses a http.Response into a HTTPError. The caller is responsible to close the response body stream.
(resp *http.Response)
| 283 | // |
| 284 | // The caller is responsible to close the response body stream. |
| 285 | func HandleHTTPError(resp *http.Response) error { |
| 286 | return handleResponse(ghAPI.HandleHTTPError(resp)) |
| 287 | } |
| 288 | |
| 289 | // UnexpectedStatusError reports a successful response whose status the caller did not expect. |
| 290 | // |