The way to do this is to raise a particular subclass of NotFound, say ProductNotFound. Then, we can register a custom 404 error page for the ProductNotFound error that has this search stuff on it.
The way to do this is to raise a particular subclass of NotFound, say ProductNotFound. Then, we can register a custom 404 error page for the ProductNotFound error that has this search stuff on it.