Adding examples of how to update the response in a middleware