This commit is contained in:
PrivacyDevel 2023-11-01 16:18:43 +00:00 committed by GitHub
commit 324db041de
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -67,6 +67,9 @@ template fetchImpl(result, fetchBody) {.dirty.} =
getContent()
if resp.status == $Http429:
raise rateLimitError()
if resp.status == $Http503:
badClient = true
raise newException(BadClientError, "Bad client")