Hi!
Im letting users visit other users profiles with www.example.com/@username
.
And i check if that user exist and show that user data.
If it doesn’t exist, i redirect with return $response->withStatus(404)->withHeader('Content-Type', 'text/html')->write('Page not found');
. But i would like to show the “original” 404 page, or the 404 page in notFoundHandler
. Is there a redirect->404()
or something similar?