class BadResponseError extends BaseError

Represents a HTTP-specific error, caused by 4xx or 5xx response statuses.

Methods

setRequest (RequestInterface $request)

No description

setResponse (ResponseInterface $response)

No description

No description

No description

Details

setRequest(RequestInterface $request)

Parameters

$request RequestInterface

Example code

$badResponseError->setRequest($request);

setResponse(ResponseInterface $response)

Parameters

$response ResponseInterface

Example code

$badResponseError->setResponse($response);

getRequest()

Example code

$badResponseError->getRequest();

getResponse()

Example code

$badResponseError->getResponse();