Handle server errors.