Fix static_from_root and add 404 template