Bot Error Codes
301 is not an error, it is a redirect. It is likely that you try to use HTTP instead of HTTPS.
Server error, need to wait some time and try again.
The token is invalid.
The bot can't write to specified chat.
There are can be only one request
setWebhook in a time.
GetUpdates can't be used while webhook is set.