Skip to content

ClientHttpException

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.

Properties

response

Response object.

protected \Sabre\HTTP\ResponseInterface $response

Methods

__construct

Constructor.

public __construct(\Sabre\HTTP\ResponseInterface $response): mixed

Parameters:

Parameter Type Description
$response \Sabre\HTTP\ResponseInterface

getHttpStatus

The http status code for the error.

public getHttpStatus(): string|null

getResponse

Returns the full response object.

public getResponse(): \Sabre\HTTP\ResponseInterface


Automatically generated on 2025-03-18