#Returning a new Response with the Status Code 404 does not work anymore

6 messages · Page 1 of 1 (latest)

fringe mica
#

In the past, with an older version of Astro, it was feasible to generate Responses bearing the 404 status code. However, in the current setup (2.10.9), this process triggers an infinite loop due to Astro's subsequent search for the missing /404.astro page. To circumvent this loop, I opt not to furnish a /404.astro page. This choice stems from my desire to refrain from redirecting users to a dedicated 404 page. Instead, I intend to furnish a 404 Code directly while retaining the requested URL's context.

fallen relic
#

definitely a bug to raise.

#

!issue 🙏

tawny kelpBOT
fringe mica
#

Thank you very much. I'll proceed by creating a new issue.