-
-
Notifications
You must be signed in to change notification settings - Fork 100
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Provide an argument to filter out certain HTTP error codes #291
Comments
there might be another approach to handling/fixing this, but this is primarily being mentioned do to URLs like: https://www.linkedin.com/in/spkane/ (which always returns an HTTP 999 to |
Based on #292, being able to set some code to ignore and some to report/warn but not error on at a global level would be useful, in addition to eventually also being able to set this on a per-patter basis. |
I also prefer a proposal in #292 to this because users can't know false positives when websites' behavior changes and error status codes are ignored globally. One concern of ignored status codes per pattern is their complexity... |
Agreed. #292 basically built on this idea and came to me as I was trying to implement the scanner GitHub action into one of my website deployment processes. |
This pull request adds a new optional argument `--status-codes` to make the accepted HTTP response status codes configurable and solves #189 and #291. I use muffet to check all links on https://tinylog.org/. However, some websites (e.g. https://stackoverflow.com, https://www.baeldung.com, and https://mkyong.com/) respond with status code 403 instead of 200 to muffet. Therefore, I would like to accept 403 as valid HTTP response status code.
Make it possible to ignore a set of HTTP error codes, like
-g 403,999
.The text was updated successfully, but these errors were encountered: