[Lifecycle] Added error codes and error messages