added static error codes and and fixed issues with siError