Invalid type returned by Astro page.
This content is not available in your language yet.
Route returned a
RETURNED_VALUE
. Only a Response can be returned from Astro files.
What went wrong?
Section titled What went wrong?Only instances of Response can be returned inside Astro files.
---return new Response(null, { status: 404, statusText: 'Not found'});
// Alternatively, for redirects, Astro.redirect also returns an instance of Responsereturn Astro.redirect('/login');---
See Also:
Error Reference