fix(client): handle created response code on domains:add
refactor(domains): cleanup domain publishing logic and URLs