From 7d6326aa1cd34b7dfdab5a48c9323d107c667a37 Mon Sep 17 00:00:00 2001 From: soufiane Date: Fri, 31 Oct 2025 16:11:34 +0100 Subject: [PATCH] wip #7827 @0:10 --- app/Models/FluidbookAuditLink.php | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/app/Models/FluidbookAuditLink.php b/app/Models/FluidbookAuditLink.php index 0bdb86bf7..1f6173cde 100644 --- a/app/Models/FluidbookAuditLink.php +++ b/app/Models/FluidbookAuditLink.php @@ -61,4 +61,14 @@ class FluidbookAuditLink extends ToolboxModel curl_close($ch); return $httpcode; } + + public static function getHttpCodeComment($httpcode) { + switch ($httpcode) { + case 301: echo " - Moved Permanently: the resource has a new permanent home — update your bookmarks or links."; break; + case 302: echo " - Found: tells the client to look at (browse to) another URL."; break; + //case 307: + //case 308: + case 400: echo " - Bad request: this and all future requests should be directed to the given URI."; break; + } + } } -- 2.39.5