def METHOD_NAME():
    """
    Test to perform an HTTP query with a list of status codes and statefully return the result
    """
    testurl = "salturl"
    http_result = {"text": "This page returned a 201 status code", "status": "201"}
    state_return = {
        "changes": {},
        "comment": 'Match text "This page returned" was found. Status 201 was found.',
        "data": {"status": "201", "text": "This page returned a 201 status code"},
        "name": testurl,
        "result": True,
    }
    with patch.dict(http.__opts__, {"test": False}):
        mock = MagicMock(return_value=http_result)
        with patch.dict(http.__salt__, {"http.query": mock}):
            assert (
                http.query(
                    testurl,
                    match="This page returned",
                    status=["200", "201"],
                    status_type="list",
                )
                == state_return
            )