Fair point but I didn't want to bloat the middleware classes with yet another class that is only going to be used for this ONE view function. This way I can also control the return code explicitly.