I am trying to use the Groovy HTTPBuilder to write an integration test that will verify a correct error message is returned in the body along with an HTTP 409 status message. Ho
Does it work if you use:
response.failure = { resp, reader -> failstatus = resp.statusLine failresp = reader.text }