update error code handler

update error code handler