A 429 can mean "slow down for a second" or "you've used up this month's allowance". The status code is the same for both, and none of the four HTTP clients I tested tries to tell them apart. I wanted to know what a 429 should carry so that the caller can. I read the RFCs first. Then I pointed the clients at a local server that sent a 429 with either a one-second or a 30-day Retry-After .
For either limit, return 429, say in the response which limit the caller hit, and set Retry-After to match. That's what slide 3 of a six-slide deck on per-customer API rate limiting recommends. The RFCs cover the status and the wait, not which limit it was.
What the specs give you
RFC 6585 defines 429 as the user having "sent too many requests in a given amount of time". The response SHOULD explain the condition and MAY include Retry-After . The RFC's own example is a limit of 50 requests an hour, answered with Retry-After: 3600 .…