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