set error type for quota errors