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

Function newRequestTimeoutError

fetcher/errors.go:126–135  ·  view source on GitHub ↗
(err error)

Source from the content-addressed store, hash-verified

124}
125
126func newRequestTimeoutError(err error) error {
127 return RequestTimeoutError{errctx.NewWrappedError(
128 err,
129 2,
130 errctx.WithPrefix("source request timed out"),
131 errctx.WithStatusCode(http.StatusGatewayTimeout),
132 errctx.WithPublicMessage(msgSourceIsUnreachable),
133 errctx.WithShouldReport(false),
134 )}
135}
136
137func newNotModifiedError(headers http.Header) error {
138 return NotModifiedError{

Callers 1

WrapErrorFunction · 0.70

Calls 5

NewWrappedErrorFunction · 0.92
WithPrefixFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected