As it is now the proxy returns the Spark master homepage for unrecognized path. E.g.: localhost:9999/yadayada returns the Spark master home page. Why not to return 404 in that case? If you think it is a good idea I can send you a PR as soon as I have some time.