add error codes and notification codes