I searched over and over again, but maybe my search terms were incorrect, because nothing turned up. I want to dynamically show my 404 component depending on the results of an HTTP request.
I realize that I can do this by redirect the user to my 404 page, but is there any way I can render the component without changing the URL?
Something like /people/<nonexistent id>
- Perform HTTP request
- If person exists, proceed as normal
- If person doesn't exist, render 404 without changing the URL
Thank you!