From: soufiane Date: Fri, 31 Oct 2025 15:11:34 +0000 (+0100) Subject: wip #7827 @0:10 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=7d6326aa1cd34b7dfdab5a48c9323d107c667a37;p=fluidbook-toolbox.git wip #7827 @0:10 --- 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; + } + } }