code: def test_serve_with_get_exit_code_for_error():
      runner = CliRunner()
      result = runner.invoke(
          cli,
          [
              "serve",
              "--memory",
              "--get",
              "/this-is-404",
          ],
          catch_exceptions=False,
      )
      assert result.exit_code == 1
      assert "404" in result.output
  
file_path: datasette/tests/test_cli_serve_get.py
imports: from datasette.cli import cli, serve
  from datasette.plugins import pm
  from click.testing import CliRunner
  import textwrap
  import json
label_desc: Use image node_id 3 for calling a global function with example usage: test_serve_with_get_exit_code_for_error() without return types