You may think the answer to this question is obvious but it is not. Generally it is completely legal for your boss to harass you.
Many bosses frequently harass their employees.
They give them a hard time about quotas, deadlines, attendance, job performance and sometimes for no apparent reason at all. This may be unfair. It may be bad management practice. But it is not illegal. If I could file a lawsuit for every employee who has called me because he or she was harassed by the boss, I would be a rich man.