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