the code is the same when replying to a server or client initiated request.