error mask to reason conversion implemented