MCPcopy Create free account
hub / github.com/containers/image / newUnexpectedHTTPStatusError

Function newUnexpectedHTTPStatusError

docker/distribution_error.go:47–52  ·  view source on GitHub ↗
(resp *http.Response)

Source from the content-addressed store, hash-verified

45}
46
47func newUnexpectedHTTPStatusError(resp *http.Response) UnexpectedHTTPStatusError {
48 return UnexpectedHTTPStatusError{
49 StatusCode: resp.StatusCode,
50 status: resp.Status,
51 }
52}
53
54// unexpectedHTTPResponseError is returned when an expected HTTP status code
55// is returned, but the content was unexpected and failed to be parsed.

Callers 4

handleErrorResponseFunction · 0.85
getExternalBlobMethod · 0.85
getOneSignatureMethod · 0.85
httpResponseToErrorFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…