{
path: '404', component: NotfoundComponent
},
{
path: '**', redirectTo: '/404'
}
1: import { RESPONSE } from '@nguniversal/express-engine/tokens';
2: constructor(@Optional() @Inject(RESPONSE) private response: any) { }
в ngOnInit() прописать
3: this.response.statusCode = 404;