Override MIDDLEWARE_CLASSES and provide explicit feedback on invalid response