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

Function isNotFound

internal/skills/discovery/discovery.go:328–331  ·  view source on GitHub ↗

isNotFound returns true if the error is an HTTP 404 response.

(err error)

Source from the content-addressed store, hash-verified

326
327// isNotFound returns true if the error is an HTTP 404 response.
328func isNotFound(err error) bool {
329 var httpErr api.HTTPError
330 return errors.As(err, &httpErr) && httpErr.StatusCode == http.StatusNotFound
331}
332
333// noReleasesError signals that the repository has no usable releases,
334// which is the only case where ResolveRef should fall back to the

Callers 2

resolveExplicitRefFunction · 0.85
resolveLatestReleaseFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected