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

Function WithStatusCode

errctx/options.go:15–19  ·  view source on GitHub ↗
(code int)

Source from the content-addressed store, hash-verified

13}
14
15func WithStatusCode(code int) Option {
16 return func(ec *ErrorContext) {
17 ec.statusCode = code
18 }
19}
20
21func WithPublicMessage(msg string) Option {
22 return func(ec *ErrorContext) {

Callers 15

newRequestErrorFunction · 0.92
newRequestSchemeErrorFunction · 0.92
newPartialResponseErrorFunction · 0.92
newResponseStatusErrorFunction · 0.92
newTooManyRedirectsErrorFunction · 0.92
newRequestCanceledErrorFunction · 0.92
newRequestTimeoutErrorFunction · 0.92
newNotModifiedErrorFunction · 0.92
WrapErrorFunction · 0.92
newSourceAddressErrorFunction · 0.92
newSignatureErrorFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected