Sending response as part of http response