mirror of
https://github.com/FranP-code/public-apis.git
synced 2025-10-13 00:03:04 +00:00
Count as error only for 4xx and 5xx http status codes
This commit is contained in:
@@ -57,7 +57,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:
|
||||||
|
|||||||
Reference in New Issue
Block a user