This feels like my [PredicatedAction](https://github.com/TechEmpower/FrameworkBenchmarks/blob/master/play-scala/app/utils/PredicatedAction.scala).

PredicatedAction allows a status to be returned when the filter is false. That turned out to be quite useful.