Facing error "Failed to load resource: the server responded with a status of 404 (Not Found)" in web browse console

I am able to open index.html file in browser but drag and drop.
but it’s not opening through server.
I want it to open through server.