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