]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/HTTPException/UnauthorizedException.php
spelling: one
[friendica.git] / src / Network / HTTPException / UnauthorizedException.php
index eda1f071bc5d4f4677dd7e88eeb2d474c70b0b8f..dfe8719f9f68d6c80e1f9da8333e0e78c4a19953 100644 (file)
@@ -1,4 +1,23 @@
 <?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;
 
@@ -6,5 +25,7 @@ use Friendica\Network\HTTPException;
 
 class UnauthorizedException extends HTTPException
 {
-       protected $code = 401;
+       protected $code        = 401;
+       protected $httpdesc    = 'Unauthorized';
+       protected $explanation = 'Authentication is required and has failed or has not yet been provided.';
 }