Error message "Handler should return response instance, got {!r}" should contain handler repr and middlewares list.