Angular Universal generate 404 (and other HTTP codes) header

Discussão em 'Angular' iniciado por Orange Lux, Maio 4, 2025.

  1. Orange Lux

    Orange Lux Guest

    I'm creating a website using Angular Universal. It will have server-side rendering in order to make it indexable by search engines.

    I already coded my 404 fallback route, it displays its component correctly, but it displays it with a HTTP 200 header code.

    How can I force a specific header code ? I googled some queries, but everything I found seemed to be about reading an HTTP call's status code, and nothing on how to write it to the browser.

    Continue reading...

Compartilhe esta Página