Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

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

Yudhi Armyndharisb5828234cb9a
diff --git a/sdk/php/src/Exceptions/OpenWAForbiddenException.php b/sdk/php/src/Exceptions/OpenWAForbiddenException.php
index abcb249e1..c6ec06518 100644
--- a/sdk/php/src/Exceptions/OpenWAForbiddenException.php
+++ b/sdk/php/src/Exceptions/OpenWAForbiddenException.php
@@ -4,7 +4,10 @@ declare(strict_types=1);
namespace OpenWA\Exceptions;
-/** 403 Forbidden: the API key's role or scope (session, IP or chat allow-list) refuses the call. */
+/**
+ * 403 Forbidden: the API key's role or scope (session, IP or chat allow-list) refuses the call, or
+ * WhatsApp itself refused the operation (for example, missing group admin rights).
+ */
class OpenWAForbiddenException extends OpenWAApiException
{
}
diff --git a/sdk/python/openwa/errors.py b/sdk/python/openwa/errors.py
index 52ec63176..324ca9c61 100644
--- a/sdk/python/openwa/errors.py
+++ b/sdk/python/openwa/errors.py
@@ -82,7 +82,9 @@ class OpenWAAuthError(OpenWAApiError):
class OpenWAForbiddenError(OpenWAApiError):
- """403 Forbidden: the API key's role or scope (session, IP or chat allow-list) refuses the call."""
+ """403 Forbidden: the API key's role or scope (session, IP or chat allow-list) refuses the call,
+ or WhatsApp itself refused the operation (for example, missing group admin rights).
+ """
class OpenWANotFoundError(OpenWAApiError):