diff --git a/htmlproofer/plugin.py b/htmlproofer/plugin.py index 59d62fa..8550389 100644 --- a/htmlproofer/plugin.py +++ b/htmlproofer/plugin.py @@ -285,17 +285,10 @@ def contains_anchor(markdown: str, anchor: str) -> bool: def bad_url(url_status: int) -> bool: if url_status == -1: return True - elif url_status == 401 or url_status == 403: - return False - elif url_status in (503, 504): - # Usually transient - return False - elif url_status == 999: - # Returned by some websites (e.g. LinkedIn) that think you're crawling them. - return False elif url_status >= 400: return True - return False + else: + return False @staticmethod def is_error(config: Config, url: str, url_status: int) -> bool: