Skip to content

Free, Open Source, Self-Hosted WhatsApp API Gateway

docs(env): note the 413 for a body larger than the client share

Yudhi Armyndharis844471232b1c
diff --git a/.env.example b/.env.example
index 3f06063f8..2769482e0 100644
--- a/.env.example
+++ b/.env.example
@@ -935,11 +935,11 @@ PLUGINS_DIR=./data/plugins # Plugin directory (default: ./data/plugins)
# Requests without an active API key (ingress webhooks, unauthenticated callers) share a quarter of
# it (at least two BODY_SIZE_LIMIT); the rest is kept for keyed requests. Each API key may hold at
# most HALF of the budget, and each unkeyed client IP half of the unkeyed pool (or one
-# BODY_SIZE_LIMIT, if larger); past that the same 503 + Retry-After. Behind a reverse proxy set
-# TRUSTED_PROXIES. Without it every unkeyed caller, ingress webhooks included, resolves to the
-# proxy address and they all draw on one client share: at the defaults a single full-size unkeyed
-# upload then refuses ingress deliveries with 503 until it finishes. A request holds its declared
-# size (a chunked body 1 MiB, or what has arrived past that) until it finishes; a body that sends
-# nothing for 15 s, or that falls behind the pace needed to deliver what it holds within
-# REQUEST_TIMEOUT_MS, is dropped.
+# BODY_SIZE_LIMIT, if larger); past that the same 503 + Retry-After, or 413 for a single declared
+# body larger than the share. Behind a reverse proxy set TRUSTED_PROXIES. Without it every unkeyed
+# caller, ingress webhooks included, resolves to the proxy address and they all draw on one client
+# share: at the defaults a single full-size unkeyed upload then refuses ingress deliveries with 503
+# until it finishes. A request holds its declared size (a chunked body 1 MiB, or what has arrived
+# past that) until it finishes; a body that sends nothing for 15 s, or that falls behind the pace
+# needed to deliver what it holds within REQUEST_TIMEOUT_MS, is dropped.
# INFLIGHT_BODY_BUDGET_BYTES=104857600