Skip to content

Commit

Permalink
Add 418 error constant
Browse files Browse the repository at this point in the history
In all tests reconnecting then triggers bad credentials. So appears that
418 is basically 401 for Meta accounts using WhatsApp (messenger, instagram).

We can add the reconnect to the Meta bridge as specific to that.
  • Loading branch information
Fizzadar committed Feb 20, 2025
1 parent 97deed8 commit c346ee2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions types/events/events.go
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ const (
ConnectFailureCATInvalid ConnectFailureReason = 414
ConnectFailureNotFound ConnectFailureReason = 415

// Status code unknown (not in WA web)
ConnectFailureClientUnknown ConnectFailureReason = 418

ConnectFailureInternalServerError ConnectFailureReason = 500
ConnectFailureExperimental ConnectFailureReason = 501
ConnectFailureServiceUnavailable ConnectFailureReason = 503
Expand Down

0 comments on commit c346ee2

Please sign in to comment.