From 6b1543bb70009817a5e2067c1569a2f714f33b44 Mon Sep 17 00:00:00 2001 From: lecaros Date: Tue, 18 Jun 2024 09:56:40 -0400 Subject: [PATCH] in_elastic: in_elasticsearch_bulk_prot: Fix string in http response code 400. Signed-off-by: lecaros --- plugins/in_elasticsearch/in_elasticsearch_bulk_prot.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/in_elasticsearch/in_elasticsearch_bulk_prot.c b/plugins/in_elasticsearch/in_elasticsearch_bulk_prot.c index 162b7cbdb10..ee5b5e03c79 100644 --- a/plugins/in_elasticsearch/in_elasticsearch_bulk_prot.c +++ b/plugins/in_elasticsearch/in_elasticsearch_bulk_prot.c @@ -942,7 +942,7 @@ static int send_response_ng(struct flb_http_response *response, flb_http_response_set_message(response, "No Content"); } else if (http_status == 400) { - flb_http_response_set_message(response, "Forbidden"); + flb_http_response_set_message(response, "Bad Request"); } if (content_type != NULL) {