How to validate Non-JSON response body using Karate
问题 I am trying to validate an error response body of non-json format. I have tried using the schema as well as a keyword using contains to match. It is not working for me. Actual Response response returned from API when multiple matches are observed in a post call: {"error":{"text":SQLSTATE[23000]: Integrity constraint violation: 1062 Duplicate entry 'NewEmp' for key 'employee_name_unique'}} My Karate Feature: Given url 'http://dummy.restapiexample.com/api/v1/create' def errResp = "error" And