def METHOD_NAME(tmp_path, basic_config_dict):
    config = tmp_path / "config.yaml"
    save_yaml(config, basic_config_dict)
    with Gateway(config) as gateway:
        # Test get
        response = gateway.get(f"{BASE_ROUTE}invalid/")
        assert response.status_code == 404
        assert response.json() == {
            "detail": "The route 'invalid' is not present or active on the server. Please "
            "verify the route name."
        }
        # Test post
        response = gateway.post(f"{BASE_ROUTE}invalid", json={"input": "should fail"})
        assert response.status_code == 405
        assert response.json() == {"detail": "Method Not Allowed"}