code: def test_run_bad_status_code(self):
      empty_byte_stream = b""
      fetcher = LinkContentFetcher(raise_on_failure=False)
      mock_response = Mock(status_code=403)
      with patch(
          "haystack.components.fetchers.link_content.requests"
      ) as mock_run:
          mock_run.get.return_value = mock_response
          streams = fetcher.run(urls=["https://www.example.com"])[
              "streams"
          ]
  
      # empty byte stream is returned because raise_on_failure is False
      assert len(streams) == 1
      first_stream = streams[0]
      assert first_stream.data == empty_byte_stream
      assert first_stream.meta["content_type"] == "text/html"
  
file_path: haystack/test/components/fetchers/test_link_content_fetcher.py
imports: from unittest.mock import patch, Mock
  import pytest
  import requests
  from haystack.components.fetchers.link_content import LinkContentFetcher, text_content_handler, binary_content_handler, DEFAULT_USER_AGENT
label_desc: Use image node_id 6 for calling the TestLinkContentFetcher obj's underlying member method code with example usage: obj.test_run_bad_status_code() without return types