Workhorse: Return 429 and Retry-After header for Gitaly LimitError
What does this MR do and why?
Return 429 and Retry-After header for Gitaly LimitError
When Gitaly returns a LimitError, it means Gitaly is at the capacity of a certain resource. It fails to serve that request. Returning 429 HTTP code and a Retry-After header is helpful. It's an indicator for clients to retry that request again.
Previously, clients received a 500 response code.
Screenshots or screen recordings
How to set up and validate locally
MR acceptance checklist
This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.
-
I have evaluated the MR acceptance checklist for this MR.