update write to response stream for ushort,uint,ulong type