(ctx context.Context)
| 26 | } |
| 27 | |
| 28 | func newMalformedSignatureError(ctx context.Context) error { |
| 29 | msg := "The signature appears to be a processing option. The signature section should always be present in the URL." |
| 30 | |
| 31 | return SignatureError{errctx.NewTextError( |
| 32 | msg, |
| 33 | 1, |
| 34 | errctx.WithStatusCode(http.StatusForbidden), |
| 35 | errctx.WithPublicMessage(msg), |
| 36 | errctx.WithShouldReport(false), |
| 37 | errctx.WithDocsURL(errctx.DocsBaseURL(ctx, "https://docs.imgproxy.net/usage/processing")), |
| 38 | )} |
| 39 | } |
| 40 | |
| 41 | func newImageResolutionError(msg string) error { |
| 42 | return ImageResolutionError{errctx.NewTextError( |
no test coverage detected