How to custom error 404 file in github

Hi, Everyone.

So. I have a netlify website but the files are stored on github, and how can I customize the error 404 page?
Is it the same as using the netlify.toml file and then putting it on github like that?
Or use another method?
Site : https://boring-websites.netlify.app

Someone answered quickly, correctly & helping I said thank you very much

Hi, thanks for reaching out! Welcome to the community. Can you please refer to the documentation below which details how to setup your redirect for your custom 404 page?