def test_query_softDoom_fails(self):
        """
        VespaTimeoutError error is raised when Vespa responds with a soft doom error.
        """
        query_client = VespaClient("http://localhost:8080", "http://localhost:8080",
                                   "http://localhost:8080", "content_default")

        def modified_post(*args, **kwargs):
            resp = httpx.post(*args, **kwargs)
            result = QueryResult(**resp.json())
            result.root.errors = []
            result.root.errors.append(
                Error(
                    code=8,
                    summary='Error in search reply.',
                    message='Search request soft doomed during query setup and initialization.'
                )
            )
            return httpx.Response(
                status_code=504,
                content=result.json(by_alias=True).encode("utf-8"),
                request=resp.request
            )

        with patch.object(
                httpx.Client, "post",
                wraps=modified_post
        ):
            with self.assertRaisesStrict(VespaTimeoutError):
                query_client.query(
                    yql="select * from sources * where title contains 'Title 1';"
                )

        VespaTimeoutError error is raised when Vespa responds with a soft doom error.
        
tests/integ_tests/vespa/test_vespa_client.py