🚀 Hostinger Optimized
🖥️ Server: Apache
💻 System: Linux webm015.cluster127.gra.hosting.ovh.net 6.18.42-ovh-vps-grsec-zfs+ #1 SMP PREEMPT_DYNAMIC Wed Aug 5 15:59:48 CEST 2026 x86_64
👤 User: stakrfrcol (69043)
🐘 PHP: 8.3.31
🚫 Disabled: _dyuweyrj4,_dyuweyrj4r,dl

💻 Terminal

📁 /home/stakrfrcol/agency
$

📄 ClientHttpException.php

📁 Path: /home/s/t/a/stakrfrcol/dolibarr/htdocs/includes/sabre/sabre/http/lib/ClientHttpException.php
📊 Size: 1.11 KB
🔒 Perm: 0604
📝 MIME: text/x-php
<?php

declare(strict_types=1);

namespace Sabre\HTTP;

/**
 * This exception represents a HTTP error coming from the Client.
 *
 * By default the Client will not emit these, this has to be explicitly enabled
 * with the setThrowExceptions method.
 *
 * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
 * @author Evert Pot (http://evertpot.com/)
 * @license http://sabre.io/license/ Modified BSD License
 */
class ClientHttpException extends \Exception implements HttpException
{
    /**
     * Response object.
     *
     * @var ResponseInterface
     */
    protected $response;

    /**
     * Constructor.
     */
    public function __construct(ResponseInterface $response)
    {
        $this->response = $response;
        parent::__construct($response->getStatusText(), $response->getStatus());
    }

    /**
     * The http status code for the error.
     */
    public function getHttpStatus(): int
    {
        return $this->response->getStatus();
    }

    /**
     * Returns the full response object.
     */
    public function getResponse(): ResponseInterface
    {
        return $this->response;
    }
}
← Back📥 Raw✏️ Edit🔒 Chmod
✨ File Manager Magic ✨