[downloader:http] add 'retry-codes' option (#3313)

This commit is contained in:
Mike Fährmann
2022-12-01 10:52:08 +01:00
parent 88610c3478
commit 80102fa367
2 changed files with 29 additions and 1 deletions

View File

@@ -3280,6 +3280,24 @@ Description
Additional HTTP headers to send when downloading files,
downloader.http.retry-codes
---------------------------
Type
``list`` of ``integers``
Default
``[429]``
Description
Additional `HTTP response status codes <https://developer.mozilla.org/en-US/docs/Web/HTTP/Status>`__
to retry a download on.
Codes ``200``, ``206``, and ``416`` (when resuming a `partial <downloader.*.part_>`__
download) will never be retried and always count as success,
regardless of this option.
Codes ``500`` - ``599`` (server error responses) will always be retried,
regardless of this option.
downloader.ytdl.format
----------------------
Type