Response shaping and logging