I’m no SEO expert, but I think that last thing you’d want to do is tell a search engine that the resource at your desired endpoint “could not be found”, which is exactly what the 404 response code does before the redirection occurs.