HTTP 400 · Bad Request
HTTP 400 Stories

When & why it happens

Story-specific precondition failed — usually the story is gone, the user lacks access, or a per-account story quota is hit.

Handling in gogram

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

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