The O(n)-symmetric model between two and four dimensions