I am trying to add custom no result behaviour to a view. I have many pages with view panes in them. Sometimes if no results are available, I would like to be able to display a 404. This is not an option when it's a view pane. I would like to do this in a reusable way where if the view pane has that custom option then this happens.
I can hard code this stuff on one of views hook, but ideally I want to be able to configure such behavior.