Skip to content

HTML error on wrong Content-Length

According to #28 (closed) all error messages are expected to be JSON. When transmitting a non-numeric Content-Length header, the API correctly returns '400 Bad Request`. However, the transmitted error message is not a JSON object but an HTML document.

Evidence: Test bg/add: Valid error response body belonging to Job system_test:robust against wrong payload in Pipeline #24261