nginx internal: request header or cookie too large; the client receives 400.
nginx uses 494 internally when a request header line exceeds large_client_header_buffers. It is logged as 494, but the client receives 400 Bad Request with the text "Request Header Or Cookie Too Large". The separate code exists so you can attach a custom page with error_page 494.
large_client_header_buffers 4 16k; if large headers are legitimate.| Header | Role |
|---|---|
Cookie | The usual oversized header. |
HTTP/1.1 400 Bad Request
Server: nginx
Content-Type: text/html
<center>Request Header Or Cookie Too Large</center>