$request
$request : \Guzzle\Http\Message\RequestInterface
Http request exception thrown when a bad response is received
$request : \Guzzle\Http\Message\RequestInterface
$response : \Guzzle\Http\Message\Response
factory(\Guzzle\Http\Message\RequestInterface $request, \Guzzle\Http\Message\Response $response) : \Guzzle\Http\Exception\BadResponseException
Factory method to create a new response exception based on the response code.
\Guzzle\Http\Message\RequestInterface | $request | Request |
\Guzzle\Http\Message\Response | $response | Response received |
setResponse(\Guzzle\Http\Message\Response $response)
Set the response that caused the exception
\Guzzle\Http\Message\Response | $response | Response to set |
getResponse() : \Guzzle\Http\Message\Response
Get the response that caused the exception
setRequest(\Guzzle\Http\Message\RequestInterface $request) : \Guzzle\Http\Exception\RequestException
Set the request that caused the exception
\Guzzle\Http\Message\RequestInterface | $request | Request to set |
getRequest() : \Guzzle\Http\Message\RequestInterface
Get the request that caused the exception