basic exception-middleware support for the DjangoGateway