Implement error return, get_action by id.