How Do I Set a 404 Error in PHP and have the Bricks 404 Error Page show?

In another thread @itchycode mentioned it is in the bug tracker

And then points us to this thread for updates.

The last post in this thread was in April.

I’ve not checked if the actual fix works for me as I am still using the code snippet workaround suggest in the above post as a temp fix.