From 9533e01ad3cade277a1423e4ba15b6e0185c8453 Mon Sep 17 00:00:00 2001 From: Sebastian 'gonX' Jensen Date: Sun, 14 Dec 2025 18:36:24 +0100 Subject: [PATCH] HTML Proofer: Ignore status code 418 https://www.freedesktop.org/wiki/Software/libinput currently returns 418 for HTTP clients that aren't confirmed to be real humans - this commit ignores this status as an error --- Rakefile | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Rakefile b/Rakefile index 1e1145ac..0f13c4e8 100644 --- a/Rakefile +++ b/Rakefile @@ -14,7 +14,10 @@ task :htmlproofer do # /Plugins.html can misbehave here in case of GitHub README.md anchors # because of User-Agent handling, and changing User-Agent causes other # unwanted side effects - check_external_hash: false + check_external_hash: false, + # status code 418 is sometimes returned by webservers performing anti-scrape methods, so it + # should assume the resource exists instead + ignore_status_codes: [ 418 ], } HTMLProofer.check_directory(compiledSitePath, options).run