mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-11-27 10:34:42 -05:00
graph: answer the export rate limit in the graph error format
A request to export the personal data beyond the rate limit got the plain text 429 of httprate, while the other errors of graph, also those of the same route, are JSON with an error code. RateLimitPerAuthenticatedUser takes a handler for the response beyond the limit now, so that a service can answer in its own format; nil keeps the plain text 429. Graph answers with activityLimitReached. The Retry-After header is set before the handler is called, so it stays. Assisted-by: Claude Code:claude-opus-5-5
This commit is contained in:
500 Internal Server Error
Gitea Version: 1.28.0+dev-477-g8b6ad49a5f