__ __ __ __ _____ _ _ _____ _ _ _ | \/ | \ \ / / | __ \ (_) | | / ____| | | | | | \ / |_ __\ V / | |__) | __ ___ ____ _| |_ ___ | (___ | |__ ___| | | | |\/| | '__|> < | ___/ '__| \ \ / / _` | __/ _ \ \___ \| '_ \ / _ \ | | | | | | |_ / . \ | | | | | |\ V / (_| | || __/ ____) | | | | __/ | | |_| |_|_(_)_/ \_\ |_| |_| |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1 if you need WebShell for Seo everyday contact me on Telegram Telegram Address : @jackleetFor_More_Tools:
<?php
/**
* Slim Framework (https://slimframework.com)
*
* @license https://github.com/slimphp/Slim/blob/4.x/LICENSE.md (MIT License)
*/
declare(strict_types=1);
namespace Slim\Exception;
use function implode;
class HttpMethodNotAllowedException extends HttpSpecializedException
{
/**
* @var string[]
*/
protected array $allowedMethods = [];
/**
* @var int
*/
protected $code = 405;
/**
* @var string
*/
protected $message = 'Method not allowed.';
protected string $title = '405 Method Not Allowed';
protected string $description = 'The request method is not supported for the requested resource.';
/**
* @return string[]
*/
public function getAllowedMethods(): array
{
return $this->allowedMethods;
}
/**
* @param string[] $methods
*/
public function setAllowedMethods(array $methods): self
{
$this->allowedMethods = $methods;
$this->message = 'Method not allowed. Must be one of: ' . implode(', ', $methods);
return $this;
}
}
| Name | Type | Size | Permission | Actions |
|---|---|---|---|---|
| HttpBadRequestException.php | File | 584 B | 0777 |
|
| HttpException.php | File | 1.25 KB | 0777 |
|
| HttpForbiddenException.php | File | 541 B | 0777 |
|
| HttpGoneException.php | File | 533 B | 0777 |
|
| HttpInternalServerErrorException.php | File | 593 B | 0777 |
|
| HttpMethodNotAllowedException.php | File | 1.06 KB | 0777 |
|
| HttpNotFoundException.php | File | 562 B | 0777 |
|
| HttpNotImplementedException.php | File | 579 B | 0777 |
|
| HttpSpecializedException.php | File | 771 B | 0777 |
|
| HttpTooManyRequestsException.php | File | 662 B | 0777 |
|
| HttpUnauthorizedException.php | File | 540 B | 0777 |
|