From 7c6312fcb284ecb0cc38741124d2a542b46375f2 Mon Sep 17 00:00:00 2001 From: millb Date: Wed, 22 Jan 2020 19:32:18 +0300 Subject: [PATCH] first attempt --- dbms/programs/server/HTTPHandler.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/dbms/programs/server/HTTPHandler.cpp b/dbms/programs/server/HTTPHandler.cpp index b2b3298693e..10a7b662d38 100644 --- a/dbms/programs/server/HTTPHandler.cpp +++ b/dbms/programs/server/HTTPHandler.cpp @@ -610,6 +610,7 @@ void HTTPHandler::trySendExceptionToClient(const std::string & s, int exception_ { try { + response.set("X-ClickHouse-Exception-Code", toString(exception_code)); /// If HTTP method is POST and Keep-Alive is turned on, we should read the whole request body /// to avoid reading part of the current request body in the next request. if (request.getMethod() == Poco::Net::HTTPRequest::HTTP_POST