give success and error default values