mirror of
https://github.com/public-apis/public-apis.git
synced 2025-05-10 23:56:46 +02:00
Count as error only for 4xx and 5xx http status codes
This commit is contained in:
parent
c0c202c170
commit
eb86183362
1 changed files with 1 additions and 1 deletions
|
@ -57,7 +57,7 @@ def validate_links(links):
|
|||
})
|
||||
code = int(resp[0]['status'])
|
||||
# Checking status code errors
|
||||
if (code >= 300):
|
||||
if (code >= 400):
|
||||
hasError = True
|
||||
print(f"ERR:CLT:{code} : {link}")
|
||||
except TimeoutError:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue