When using User::pingLimiter() / UserAuthority::limit() / RateLimiter::limit(), there should be a way to get the time the user needs to wait for the limit to clear, as typically we want to include this in the error message.
Related: T172293: Add Retry-After header when a rate limit has been triggered