cancel
Showing results for 
Search instead for 
Did you mean: 

HTTP/1.1 204 No Content - Assertion is failing for valid HTTP status code 204. please advise.

SOLVED
BT
New Contributor

HTTP/1.1 204 No Content - Assertion is failing for valid HTTP status code 204. please advise.

Below Raw response

 

HTTP/1.1 204 No Content
Content-Length: 0

 

The assertion passed for free version of SoapUI.

It is failing for ReadyAPI.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Moderator

Re: HTTP/1.1 204 No Content - Assertion is failing for valid HTTP status code 204. please advise.

This should be fixed in the maintenance build of Ready! API 1.9:

https://support.smartbear.com/downloads/readyapi/nightly-builds/

 

But just FYI, a server that returns 204 with Content-Length is not RFC-compliant. RFC 7230 section 3.2.2 states:

> A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content).


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
1 REPLY 1
Highlighted
Moderator

Re: HTTP/1.1 204 No Content - Assertion is failing for valid HTTP status code 204. please advise.

This should be fixed in the maintenance build of Ready! API 1.9:

https://support.smartbear.com/downloads/readyapi/nightly-builds/

 

But just FYI, a server that returns 204 with Content-Length is not RFC-compliant. RFC 7230 section 3.2.2 states:

> A server MUST NOT send a Content-Length header field in any response with a status code of 1xx (Informational) or 204 (No Content).


Helen Kosova
SmartBear Technical Writer
________________________
Vote up helpful replies.
Accept this reply if you think it's the best solution to your question.

Join the September Hub-bub to show off, learn and win
New Here?
Join us and watch the welcome video:
Join the exciting event
SeptemberHubBub
Join the September Hub-bub to show off, learn and win