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

Function newSecurityOptionsError

options/parser/errors.go:71–80  ·  view source on GitHub ↗
(ctx context.Context)

Source from the content-addressed store, hash-verified

69}
70
71func newSecurityOptionsError(ctx context.Context) error {
72 return SecurityOptionsError{errctx.NewTextError(
73 "Security processing options are not allowed",
74 1,
75 errctx.WithStatusCode(http.StatusForbidden),
76 errctx.WithPublicMessage("Invalid URL"),
77 errctx.WithDocsURL(errctx.DocsBaseURL(ctx, defaultDocsUrl)),
78 errctx.WithShouldReport(false),
79 )}
80}
81
82// newInvalidArgsError creates a standardized error for invalid arguments
83func newInvalidArgsError(ctx context.Context, key string, args []string) error {

Callers 1

Calls 6

NewTextErrorFunction · 0.92
WithStatusCodeFunction · 0.92
WithPublicMessageFunction · 0.92
WithDocsURLFunction · 0.92
DocsBaseURLFunction · 0.92
WithShouldReportFunction · 0.92

Tested by

no test coverage detected