Trying to connect an IoT device to Twitch to get stream status

What’s the body of the error message say?

It should tell you what the issue is

HTTP 400 could be one of many things. You only have half the picture here.