404 File not found but looking in folder

Hello, i am doing something where i have to access the files of a directory from my site but i get File not found when doing it from github. Is there a way to disable this and just use the default?
Here is what i want to come up

Hi @HyperSkript, welcome to the GitHub Support Community!

Can you give some more information on exactly what’s going wrong? Any links to Pages sites you’re having trouble with or repositories you’re using would be very helpful in debugging this!