api: add comment for WriteResponse. Fix upper bound for len(data) to have the whole message body <= MaxSize.