463 X-Forwarded-For Too Long

AWS load balancer code for a request whose X-Forwarded-For header contains more than 30 addresses.

Status

HTTP/1.1 463 X-Forwarded-For Too Long

Details

An AWS Application Load Balancer rejects a request with 463 when the X-Forwarded-For header lists more than 30 IP addresses. A chain that long normally means a proxy loop or a header being appended repeatedly.

The fix is almost always upstream: find the hop that keeps adding to the header rather than raising a limit.

Common causes

How to fix it

As the client

As the server

Examples

GET /api/status HTTP/1.1
Host: api.example.com
X-Forwarded-For: (31 addresses)

HTTP/1.1 463

See also