You've already forked imgproxy
mirror of
https://github.com/imgproxy/imgproxy.git
synced 2026-06-13 22:32:40 +02:00
20 lines
398 B
Go
20 lines
398 B
Go
package workers
|
|
|
|
import (
|
|
"net/http"
|
|
|
|
"github.com/imgproxy/imgproxy/v4/errctx"
|
|
)
|
|
|
|
type TooManyRequestsError struct{ *errctx.TextError }
|
|
|
|
func newTooManyRequestsError() error {
|
|
return TooManyRequestsError{errctx.NewTextError(
|
|
"Too many requests",
|
|
1,
|
|
errctx.WithStatusCode(http.StatusTooManyRequests),
|
|
errctx.WithPublicMessage("Too many requests"),
|
|
errctx.WithShouldReport(false),
|
|
)}
|
|
}
|