MCPcopy Create free account
hub / github.com/cli/cli / HandleHTTPError

Function HandleHTTPError

api/client.go:285–287  ·  view source on GitHub ↗

HandleHTTPError parses a http.Response into a HTTPError. The caller is responsible to close the response body stream.

(resp *http.Response)

Source from the content-addressed store, hash-verified

283//
284// The caller is responsible to close the response body stream.
285func 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//

Callers 15

GetUserMethod · 0.92
GetRepositoryMethod · 0.92
ListCodespacesMethod · 0.92
GetOrgMemberCodespaceMethod · 0.92
GetCodespaceMethod · 0.92
StartCodespaceMethod · 0.92
StopCodespaceMethod · 0.92
GetCodespacesMachinesMethod · 0.92
startCreateMethod · 0.92

Calls 1

handleResponseFunction · 0.85

Tested by 2