Get response in middleware.