What is the difference between 何だと and 何ですと?


I noticed that in some anime (specifically, the Ace Attorney anime), the
characters often switch between 何だと, 何ですと, and a few other slight variants.
What is the difference between them?




何だと is a plain form while 何ですと is a polite form.

