def process_request(self, request):
        try:
            client_version = request.META['HTTP_DEIS_VERSION']
            server_version = __version__.rsplit('.', 2)[0]
            if client_version != server_version:
                message = {
                    'error': 'Client and server versions do not match. ' +
                             'Client version: {} '.format(client_version) +
                             'Server version: {}'.format(server_version)
                }
                return HttpResponse(
                    json.dumps(message),
                    content_type='application/json',
                    status=status.HTTP_405_METHOD_NOT_ALLOWED
                )
        except KeyError:
            pass
Peer request destruction of app and its actors
dataset/ETHPy150Open deis/deis/controller/api/middleware.py/APIVersionMiddleware.process_request--crossover with--dataset/ETHPy150Open EricssonResearch/calvin-base/calvin/runtime/north/calvin_proto.py/CalvinProto.app_destroy_handler