v.25.12Improvement

Any exception in HTTP should never contain

Any exception in HTTP should never contain final zero chunk. #89998 (Kaviraj Kanagaraj).
Fix handling of HTTP exceptions to ensure that responses never contain a final zero chunk.

Why it matters

This change addresses an issue where HTTP exceptions could mistakenly include a final zero chunk in the response, which violates proper chunked transfer encoding and may cause clients to misinterpret the response. The fix ensures more reliable and standards-compliant HTTP error handling in ClickHouse.

How to use it

The fix is applied internally in the HTTP server component of ClickHouse. Users do not need to change their configuration or usage patterns; the improved HTTP exception handling is enabled automatically with this update.