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

Function newNotModifiedError

fetcher/errors.go:137–148  ·  view source on GitHub ↗
(headers http.Header)

Source from the content-addressed store, hash-verified

135}
136
137func newNotModifiedError(headers http.Header) error {
138 return NotModifiedError{
139 errctx.NewTextError(
140 "not modified",
141 1,
142 errctx.WithStatusCode(http.StatusNotModified),
143 errctx.WithPublicMessage("Not modified"),
144 errctx.WithShouldReport(false),
145 ),
146 headers,
147 }
148}
149
150func (e NotModifiedError) Headers() http.Header {
151 return e.headers

Callers 1

FetchMethod · 0.85

Calls 4

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

Tested by

no test coverage detected