How can I force a “404 Not Found” error
The short version is that you will need to do the lookup much sooner. As pointed out in comments, a 404 status can only be sent with the headers. There are a few ways that you can solve this issue. I would do it with a class. That class would use a few hooks but … Read more