]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/HTTPException/NonAcceptableException.php
Changed scope
[friendica.git] / src / Network / HTTPException / NonAcceptableException.php
index 9ef40d60b6b21bad9d387f80a62ea5b1535ff4f5..3b1c1538af193a4fb7236e01bd6aa8f1472df838 100644 (file)
@@ -1,4 +1,23 @@
 <?php
+/**
+ * @copyright Copyright (C) 2010-2021, 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;
 
@@ -6,5 +25,7 @@ use Friendica\Network\HTTPException;
 
 class NonAcceptableException extends HTTPException
 {
-       protected $code = 406;
+       protected $code        = 406;
+       protected $httpdesc    = 'Not Acceptable';
+       protected $explanation = 'The requested resource is capable of generating only content not acceptable according to the Accept headers sent in the request.';
 }