bug fixed StatusCode type
lsdetailed exceptions better managed