494 Request Header Too Large

Internal nginx code for a request whose headers exceeded the configured buffer, logged before a 400 is returned.

Status

HTTP/1.1 494 Request Header Too Large

Details

nginx uses 494 internally when the request header block does not fit in client_header_buffer_size or large_client_header_buffers. The client normally receives a 400, so 494 is something you find in logs rather than on the wire.

It predates the standardization of 431, which is the correct code to return for this condition today.

Common causes

How to fix it

As the client

As the server

Examples

(nginx error log)
client sent too long header line, request: "GET / HTTP/1.1", status 494

See also