How can you return status code 404 from angular PageNotFoundComponent?

Discussão em 'Angular' iniciado por twk, Maio 6, 2025.

  1. twk

    twk Guest

    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...

Compartilhe esta Página