]> _ Git - fluidbook-toolbox.git/commitdiff
wip #7827 @0:10
authorsoufiane <soufiane@cubedesigners.com>
Fri, 31 Oct 2025 15:11:34 +0000 (16:11 +0100)
committersoufiane <soufiane@cubedesigners.com>
Fri, 31 Oct 2025 15:11:34 +0000 (16:11 +0100)
app/Models/FluidbookAuditLink.php

index 0bdb86bf76a4dee52387713aea79cd652284369f..1f6173cde5acd27be2f49b4e008835880760e5bc 100644 (file)
@@ -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;
+        }
+    }
 }