For each site you need to add a Generic Content page called anything you like e.g. 'Page not found'. But it must have a slug of exactly '404' (without the qutote marks)