return errorcodes