Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't treat some HTTP status error codes as not errors (#78)
Previously 401, 403, 503, 504, and 999 HTTP status codes were treated as "not an error" and therefore not reported. At the time this made sense as there was no easy way to say "do not treat 504 codes as an error, I will assume it is transient". However, with a recent change you can do: ```yml raise_error_excludes: 504: ['*'] ``` And treat all 504s as not an error. This commit makes all "special HTTP status codes" an error and allows for users to configure their `raise_error_excludes` if they want to get the old behavior back. I found this functionality when trying to figure out why some links that we had that there bad weren't being reported by htmlproofer. It turned out that the broken links were coming back with "probably good" error codes and thus we never saw them. Closes #77
- Loading branch information