MCPcopy Create free account
hub / github.com/imgproxy/imgproxy / newPartialResponseError

Function newPartialResponseError

fetcher/errors.go:70–78  ·  view source on GitHub ↗
(msg string)

Source from the content-addressed store, hash-verified

68}
69
70func newPartialResponseError(msg string) error {
71 return PartialResponseError{errctx.NewTextError(
72 msg,
73 1,
74 errctx.WithStatusCode(http.StatusNotFound),
75 errctx.WithPublicMessage(msgSourceIsUnreachable),
76 errctx.WithShouldReport(false),
77 )}
78}
79
80func newResponseStatusError(status int, body string) error {
81 var msg string

Callers 1

Calls 4

NewTextErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected