Different universities have different policies. If you go to a legit school they should have that policy listed on their website. I know I can fill out a formal complaint, which then goes to a higher up. They mediate between the teacher and student, both presenting evidence of why said grade is deserved/not deserved.