Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(sdk-go): note that WhatsApp's own refusals also answer 403

Yudhi Armyndharisb364bb92bf3a
diff --git a/sdk/go/errors.go b/sdk/go/errors.go
index 7a5aac40c..7e4a18536 100644
--- a/sdk/go/errors.go
+++ b/sdk/go/errors.go
@@ -24,7 +24,8 @@ var (
// ErrUnauthorized is returned for a 401 (missing or invalid API key).
ErrUnauthorized = errors.New("openwa: unauthorized")
// ErrForbidden is returned for a 403: the API key's role or scope (session,
- // IP or chat allow-list) refuses the call.
+ // IP or chat allow-list) refuses the call, or WhatsApp itself refused the
+ // operation (for example, missing group admin rights).
ErrForbidden = errors.New("openwa: forbidden")
// ErrNotFound is returned for a 404.
ErrNotFound = errors.New("openwa: not found")