301 is great when you are pretty sure you know what the URL should have been. This is the best solution for both browsers and SEO when they encounter broken inbound links.
However, 3xx is not suitable as a general answer not found on the page. There are several sites that always 302 you / instead of returning 404, but this is very bad, which can easily break the material.
source share