]> git.mxchange.org Git - friendica.git/blobdiff - src/Network/HTTPException/MethodNotAllowedException.php
Merge pull request #12063 from Quix0r/fixes/type-hints-reformatting
[friendica.git] / src / Network / HTTPException / MethodNotAllowedException.php
index 7cd3079a34c5c35126d915ae96d7a589d5948520..2cb5784228faf692dc09735c3638edf43a25c85e 100644 (file)
@@ -1,6 +1,6 @@
 <?php
 /**
- * @copyright Copyright (C) 2020, Friendica
+ * @copyright Copyright (C) 2010-2022, the Friendica project
  *
  * @license GNU AGPL version 3 or any later version
  *
@@ -25,5 +25,7 @@ use Friendica\Network\HTTPException;
 
 class MethodNotAllowedException extends HTTPException
 {
-       protected $code = 405;
+       protected $code        = 405;
+       protected $httpdesc    = 'Method Not Allowed';
+       protected $explanation = 'A request method is not supported for the requested resource; for example, a GET request on a form that requires data to be presented via POST, or a PUT request on a read-only resource.';
 }