Is there a built-in function in Site Tree to hide or remove 404 errors? Currently, I'm solving this issue through scripting(standalone script), but I'm wondering if there's a feature that I'm unaware of.

If such a feature doesn't exist, it would be great if we could add a toggle button to show or hide 404 pages. Site trees are often used to understand the service's structure, but the numerous 404 pages caused by various tests can make the tree structure difficult to comprehend.
** Note that in the case of Burp Suite, 404 errors are not shown in the tree.
Best regards.