I have an authentication check in my middleware and if the user fails it, I want to show them the 404.astro page. Responding with the below doesn't use the 404.astro page (though that page is used for arbitrary unknown routes).
How can I preserve the current URL but show the 404 page?
return new Response(null, { status: 404, statusText: 'Not found' })