Scarabanza
11 years agoNew Contributor
Rest Response does not return specified status code
I created a new REST project containing a mock service with a single response, set its status code to 507, and put some trivial XML in the body of the response. When I ran a request against this service it returned the correct XML but the wrong response code of 200.
After a little investigation, I found a workaround by adding the following script to the response. This shouldn't be required, but at least it shouldn't break anything once this bug is fixed.
I am using SoapUI 5.0.0-m-SNAPSHOT.
I have also attached the project mentioned above.
After a little investigation, I found a workaround by adding the following script to the response. This shouldn't be required, but at least it shouldn't break anything once this bug is fixed.
mockRequest.httpResponse.status = mockResponse.responseHttpStatus
I am using SoapUI 5.0.0-m-SNAPSHOT.
I have also attached the project mentioned above.