getStatusCode() . ' (' . $response->getReasonPhrase() . ')'; } if ($code === null) { $code = $response->getStatusCode(); } parent::__construct($message, $code, $previous); $this->response = $response; } /** * Access its underlying response object. * * @return ResponseInterface */ public function getResponse() { return $this->response; } }