]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/HTTPException/PreconditionFailedException.php
spelling: one
[friendica.git] / src / Network / HTTPException / PreconditionFailedException.php
index b0f4e71cafbf36a6b2e6fdb8bb82bd961b61eece..1a8f3f71f442fbfb81da713407115e69bc6e2aee 100644 (file)
@@ -1,10 +1,31 @@
-<?php\r
-\r
-namespace Friendica\Network\HTTPException;\r
-\r
-use Friendica\Network\HTTPException;\r
-\r
-class PreconditionFailedException extends HTTPException\r
-{\r
-       var $httpcode = 412;\r
-}\r
+<?php
+/**
+ * @copyright Copyright (C) 2010-2023, the Friendica project
+ *
+ * @license GNU AGPL version 3 or any later version
+ *
+ * This program is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License as
+ * published by the Free Software Foundation, either version 3 of the
+ * License, or (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License
+ * along with this program.  If not, see <https://www.gnu.org/licenses/>.
+ *
+ */
+
+namespace Friendica\Network\HTTPException;
+
+use Friendica\Network\HTTPException;
+
+class PreconditionFailedException extends HTTPException
+{
+       protected $code        = 412;
+       protected $httpdesc    = 'Precondition Failed';
+       protected $explanation = 'The server does not meet one of the preconditions that the requester put on the request header fields.';
+}