404 errors solution

Hi guys

i am trying to find a solution for 404 errors. Is there a multisite solution to redirect 404 to the home page of the subsite or mapped site.

thanks