My understanding is that you can customize the not found page by setting { path: '**', component: PageNotFoundComponent } to RouterMoudle.forRoot(routes). However it returns http status code 200. How can you return status code 404? Continue reading...