add beer error management on server side