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

Function NewResponseWriteError

handlers/errors.go:32–39  ·  view source on GitHub ↗
(cause error)

Source from the content-addressed store, hash-verified

30)
31
32func NewResponseWriteError(cause error) errctx.Error {
33 return ResponseWriteError{errctx.NewWrappedError(
34 cause,
35 1,
36 errctx.WithPrefix("failed to write response"),
37 errctx.WithPublicMessage("Failed to write response"),
38 )}
39}
40
41func newInvalidURLErrorf(docsUrl string, status int, format string, args ...any) errctx.Error {
42 return InvalidURLError{errctx.NewTextError(

Callers 1

respondWithImageMethod · 0.92

Calls 3

NewWrappedErrorFunction · 0.92
WithPrefixFunction · 0.92
WithPublicMessageFunction · 0.92

Tested by

no test coverage detected