HTTP 500 · Internal Server Error
HTTP 500 Server / Internal

When & why it happens

The server did not respond within the protocol's timeout window. Retry; if persistent, suspect network or DC issues.

Handling in gogram

Surfaced as *gogram.ErrResponseCode. Match on the message:

if err, ok := err.(*gogram.ErrResponseCode); ok { if err.Message == "TIMEOUT" { // handle this error } }