protected function buildMessage(array $allowedMethods): string
    {
        $ending = 'Allowed method is: %s';

        if (count($allowedMethods) > 1) {
            $ending = 'Allowed methods are: %s';
        }

        return sprintf('Method is not allowed. ' . $ending, implode(', ', $allowedMethods));
    }