We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6318c78 commit 9e53b0eCopy full SHA for 9e53b0e
website/content/middleware/rate-limiter.md
@@ -33,10 +33,10 @@ config := middleware.RateLimiterConfig{
33
return id, nil
34
},
35
ErrorHandler: func(context echo.Context, err error) error {
36
- return context.JSON(http.StatusTooManyRequests, nil)
+ return context.JSON(http.StatusForbidden, nil)
37
38
DenyHandler: func(context echo.Context, identifier string,err error) error {
39
- return context.JSON(http.StatusForbidden, nil)
+ return context.JSON(http.StatusTooManyRequests, nil)
40
41
}
42
0 commit comments