Tuesday, 4 June 2019

How can you return status code 404 from angular PageNotFoundComponent?

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?



from How can you return status code 404 from angular PageNotFoundComponent?

No comments:

Post a Comment