From 66674334cf0e9e1cb36b72613c1ce1f00505c901 Mon Sep 17 00:00:00 2001 From: Leonel Higuera Date: Wed, 16 Jul 2025 13:54:43 -0700 Subject: [PATCH] Correct duplicate HTTP 403 handler intended for 404 response --- lib/jekyll/strapi4/strapihttp.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/jekyll/strapi4/strapihttp.rb b/lib/jekyll/strapi4/strapihttp.rb index de4b65e..2a22cd2 100644 --- a/lib/jekyll/strapi4/strapihttp.rb +++ b/lib/jekyll/strapi4/strapihttp.rb @@ -34,9 +34,9 @@ def strapi_request(url) raise "The Strapi server sent a error with the following status: 401. Please make sure that your credentials are correct or that you have access to the API." elsif response.code == "403" raise "The Strapi server sent a error with the following status: 403. Please provide STRAPI_TOKEN or allow public access for find and findOne actions." - elsif response.code == "403" + elsif response.code == "404" raise "The Strapi server sent a error with the following status: 404. Please make sure that name of your collection is correct." else raise "The Strapi server sent a error with the following status: #{response.code}. Please make sure it is correctly running." end -end \ No newline at end of file +end