Description: Alon Diamant's home page. A blog to assist others in solving their own issues encountered in their work as developers
programming (6711) israel (2333) diamant (419) latin america (413) south america (342) central america (150) alon (16) alon diamant (1) advance512 (1) intomato (1)
TLDR: AWS ALB incorrectly returns an HTTP 502 error when HTTP headers are too large, instead of the expected HTTP 431.
Just wanted to note that we’ve discovered a small bug in AWS’ ALB. When making an HTTP/1.x request, there exist size limits that are hard limits which cannot be changed. As listed here , they are:
Based on RFC-6585 , the error that should be returned to the client in case of having the headers exceed the limits is the 431 Request Header Fields Too Large error. The RFC states: