How to return a 404 when custom query matches nothing? July 3, 2022 by Tarik Billa How to return a 404 when custom query matches nothing?