diff --git a/kong/error_handlers.lua b/kong/error_handlers.lua index 1fe12f8adeb..8fd83cf55aa 100644 --- a/kong/error_handlers.lua +++ b/kong/error_handlers.lua @@ -59,6 +59,9 @@ return function(ctx) local status = kong.response.get_status() local message = get_body(status) + -- Nginx 494 status code is used internally when the client sends + -- too large or invalid HTTP headers. Kong is obliged to convert + -- it back to `400 Bad Request`. if status == 494 then status = 400 end