response = $response; parent::__construct($response->getStatusText(), $response->getStatus()); } /** * The http status code for the error. * * @return int */ function getHttpStatus() { return $this->response->getStatus(); } /** * Returns the full response object. * * @return ResponseInterface */ function getResponse() { return $this->response; } }