Apparently UAPI does not return any error code, just JSON output that has a string "status: 0" whenever the command fails.
for cpanel_uapi
Deploy works only for the first domain
tried to make it a bit less confusing