First of all (and most importantly), prevent bites. Avoid doing the things that lead to bites, work on them slowly to reduce these things as a reason, protect yourself without creating trouble, and very importantly work on building a relationship that makes your bird want to be around you and do the things you want rather than biting you.
Don't clip the wings, that is a big cause of biting and bad for the bird (
learn more about how to keep a flighted parrot though).
Do not punish the bird! Do not attempt to punish the bird. Don't punish the bird by accident.
Many people are just complete idiots about fear biting. The parrot is afraid of them (or whatever is gonna happen) so it bites. The person gets mad at the
parrot for biting and tries to punish it in some way (squirting with water, putting away in cage, or worse). That makes the parrot more scared of the person in general and avoid the person. Next time the person comes over, the parrot wants to get away but can't (clipped wings) so it bites in self defense trying to prevent the abuse it is becoming accustomed to receiving from the human. This is a catastrophic slippery slope to entirely destroy a relationship with the parrot and more likely make it end up a lifelong rescue case with trust issues. So my point is that doing the things that make a parrot bite in response to biting is just completely wrong and will never help.
A lot of times
parrots bite is because they can foresee you doing something that they don't like such as putting them away in the cage, so read up on this. Other times it could be jealousy, displaced aggression, fear, etc. Exposing them to their fears/jealousies in mild amount and progressively challenging them with more should over time desensitize to them.
The best approach is to make the parrot enjoy being around you. This is where resource management, positive reinforcement, taming, and training come in. You create a language between you and the bird and make it look forward to being around you. Further, you give the bird alternative things to do other than biting. Structuring food, treats, out of cage schedules, etc all lead to a
well behaved companion parrot. Many people don't understand my advice because they pick and choose. My point is that the path to success with parrots is following the entire approach. Food management, resource management, scheduling, good habits,
positive reinforcement training, negative reinforcement desensitization taming, socialization, challenge, flight, are all necessary in combination to have that easy no bite relationship. So I hope you can take some time to read articles on my blog and around this forum to study the complete approach to solve biting and most issues.