I'm testing a rest api with soap but when the json that is input is not formatted well (quote missing per example) it returns the following error:
Illegal unquoted character ((CTRL-CHAR, code 10)): has to be escaped using backslash to be included in string value
Which is normal nevertheless it returns code 200 so I can't know if there is an error.
How can I control this error with assertions?