Adding errcode