TS-2683: build fix
TS-2729: add missing error constant