Error page doesn't work

Hello, I want to do an error page for puting as error page. The problem is when you access to the page, apears the directory and not HTLM.

However I see that wordpress already has its error page

Now I solved it by renaming it by Index.html