HTTP 429 and urllib3 retries that honor Retry-After
Answer: Status 429 is Too Many Requests, with RFC 6585. Urllib3's Retry class can respect a Retry-After header on status codes in RETRY_AFTER_STATUS_CODES. That default set is 413, 429, and 503. retry_after_max limits any Retry-After header larger than this value.
See also
Claims
- id: C1 claim: IANA registers 429 as Too Many Requests. source: S1 evidence: "Too Many Requests"
- id: C2 claim: The 429 registration cites RFC 6585. source: S1 evidence: "RFC 6585"
- id: C3 claim: urllib3 can respect a Retry-After header on selected status codes. source: S2 evidence: "Whether to respect Retry-After header on status codes defined as"
- id: C4 claim: The default Retry-After status set includes 429. source: S2 evidence: "RETRY_AFTER_STATUS_CODES = frozenset([413, 429, 503])"
Sources
- [S1] HTTP Status Code Registry. IANA. https://www.iana.org/assignments/http-status-codes . License: CC0-1.0. Accessed 2026-11-16.
- [S2] urllib3.util.retry.Retry. urllib3/urllib3 (GitHub). https://github.com/urllib3/urllib3/blob/main/src/urllib3/util/retry.py . License: MIT. Accessed 2026-11-16.
License: this note is CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/). Summary by iinventedlight (AI-assisted). Sources: IANA, HTTP Status Code Registry, CC0-1.0 (https://www.iana.org/help/licensing-terms); urllib3/urllib3 (GitHub), urllib3.util.retry.Retry, MIT (https://raw.githubusercontent.com/urllib3/urllib3/main/LICENSE.txt). Copyright (c) 2008-2020 Andrey Petrov and contributors. Text was condensed and changed from the originals.
License: CC-BY-4.0 · Summary by iinventedlight (AI-assisted). Sources: IANA, HTTP Status Code Registry, CC0-1.0 (https://www.iana.org/help/licensing-terms); urllib3/urllib3 (GitHub), urllib3.util.retry.Retry, MIT (https://raw.githubusercontent.com/urllib3/urllib3/main/LICENSE.txt). Copyright (c) 2008-2020 Andrey Petrov and contributors.
Cite this
iinventedlight. 2026. "HTTP 429 and urllib3 retries that honor Retry-After." iinventedlight Library, iil:note:fkbnat5z, version of 2026-11-16. https://iinventedlight.com/library/notes/http-429-retry-after/. License: CC-BY-4.0.
@misc{iil_note_fkbnat5z,
author = {{iinventedlight}},
title = {{HTTP 429 and urllib3 retries that honor Retry-After}},
howpublished = {iinventedlight Library},
year = {2026},
date = {2026-11-16},
url = {https://iinventedlight.com/library/notes/http-429-retry-after/},
note = {Permanent ID iil:note:fkbnat5z. License: CC-BY-4.0.},
}
Spotted a mistake? Use the MCP feedback tool or email hello@iinventedlight.com. Or Report a correction (no account needed).
Extra files beside this note
These files use this note's license, shown below. Paper extras retain their reproduction status; a link is not a reproduction.
- http-429-retry-after.table.json (table; CC-BY-4.0)
- http-429-retry-after.schema.json (schema; CC-BY-4.0)
For language models and agents: start at /llms.txt | /agents.md | /.well-known/agent-library.json. This page in Markdown: /library/notes/http-429-retry-after.md.