7 ms·
It’s not great, but you could add it to the body of a 429 response.
by jacksnipe 8mo ago
It’s not great, but you could add it to the body of a 429 response.
- VTimofeenko 8mo agoGenuinely curious: do programs read bodies of 429 responses? In the code bases that I have seen, 429 is not read beyond the code itself
- jakelazaroff 8mo agoSometimes! The server can also send a retry-after header to indicate when the client is allowed to request the resource again: https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/Headers/Retry-After https://developer.mozilla.org/en-US/docs/Web/HTTP/Reference/...
- deathanatos 8mo ago… which isn't part of the body of a 429…
- VTimofeenko 8mo agoWell, to be fair, I did say "is not read beyond the code itself", header is not the code, so retry-after is a perfectly valid answer. I vaguely remember reading about it, but I don't recall seeing it used in practice. MDN link shows that Chrome derivatives support that header though, which makes it pretty darn widespread
- gleenn 8mo agoAlmost certainly not by default, certainly not in any of the http libs I have used
- dfxm12 8mo agoIf I find something useful there, I'll read it and code for it...
- jacksnipe 8mo agoUp until very recently I would have said definitely not, but we're talking about LLM scrapers, who knows how much they've got crammed into their context windows.