added unified error code