Always set up common response headers before sending response