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

Function newInvalidSecretError

server/errors.go:93–101  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91}
92
93func newInvalidSecretError() errctx.Error {
94 return InvalidSecretError{errctx.NewTextError(
95 "Invalid secret",
96 1,
97 errctx.WithStatusCode(http.StatusForbidden),
98 errctx.WithPublicMessage("Forbidden"),
99 errctx.WithShouldReport(false),
100 )}
101}

Callers 1

WithSecretMethod · 0.85

Calls 4

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

Tested by

no test coverage detected