2 min read
What it is
Retry-After is a standard HTTP response header that tells a client how long to wait before making another request. The Credicorp public API sends it with every 429 Too Many Requests, expressed as a number of seconds until the rate-limit window resets.
How to use it
On a 429, read Retry-After, sleep for that many seconds (add a little jitter if you run many clients), then retry once. Ignoring it and retrying immediately only keeps the window saturated. See handling rate limits gracefully.
Frequently asked questions
Do I have to honour Retry-After?
You should. Waiting the stated time is the fastest path back to success; retrying sooner just re-trips the limit.
Funding for UK limited companies
Credicorp lends to your company, not to you personally — short-term working capital with no personal guarantee. See what your business could access.