Forum Discussion

apu's avatar
apu
Occasional Contributor
8 years ago

Assertion on Http-Status 204 with Content-Length: 0

I've noticed that an assertion on "Valid HTTP Status Codes" with an HTTP Status Code 204 with Content-Length: 0 results in an error ("Wrong server response: responses with the 204 status code must not contain the "Content-Length" header.")

I have seen that other users had the same problem, unfortunately, the problem seems still exists in Ready API 1.9.0.

Regarding on following posts:

https://community.smartbear.com/t5/SoapUI-NG/Issue-with-Raw-response-in-readyAPI-1-9-0-when-response-is-blank/m-p/131877/
https://community.smartbear.com/t5/SoapUI-NG/Http-Status-Code-204-not-recognized-as-Valid-or-Invalid-Code/m-p/21954/
https://community.smartbear.com/t5/SoapUI-NG/Assertion-fail-for-valid-HTTP-code-204/m-p/130267/

Is there already a solution without Groovy or using an older version?