The HTTP code is half the information.
The API will also respond with a JSON payload that will describe the problem
A common ussue is that you have the wrong token type (app access/client credentials) or you generate a user token for 123393473 that doesn’t include the scope channel:manage:broadcast see Reference | Twitch Developers