Skip to content

Commit

Permalink
usingcurl/downloads/retry.md: add more transient error codes
Browse files Browse the repository at this point in the history
- Add 408 and 429 to the list of transient HTTP error codes for --retry.

This change syncs the codes with those in curl's manpage for --retry.

Ref: https://curl.se/docs/manpage.html#--retry

Fixes #511
Closes #512
  • Loading branch information
joshuacwnewton authored and jay committed Oct 17, 2024
1 parent ad9bcd3 commit eb14fc5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion usingcurl/downloads/retry.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@ certain failed transfers.
If a transient error is returned when curl tries to perform a transfer, it
retries this number of times before giving up. Setting the number to 0 makes
curl do no retries (which is the default). Transient error means either: a
timeout, an FTP 4xx response code or an HTTP 5xx response code.
timeout, an FTP 4xx response code or an HTTP 408, 429, 500, 502, 503 or 504
response code.

## Tweak your retries

Expand Down

0 comments on commit eb14fc5

Please sign in to comment.