{"statusCode":500,"err":{"name":"StatusCodeError","statusCode":400,"message":"400 - <?xml version=\"1.0\" ?><exception><path>/db</path><message>exerr:ERROR org.exist.xquery.XPathException: err:XPST0003 unexpected token: matches [at line 3, column 7]\n</message></exception>","error":"<?xml version=\"1.0\" ?><exception><path>/db</path><message>exerr:ERROR org.exist.xquery.XPathException: err:XPST0003 unexpected token: matches [at line 3, column 7]\n</message></exception>","options":{"uri":"http://10.28.3.11:8080/exist/rest/db","method":"POST","body":"<?xml version=\"1.0\"?><query wrap=\"no\" max=\"1\" xmlns=\"http://exist.sourceforge.net/NS/exist\"><text>declare namespace marc='http://www.loc.gov/MARC21/slim';\n\nwhere matches(data($c/marc:leader), '{{record.leader}}')\nreturn $c</text></query>","headers":{"Content-Type":"application/xml"},"auth":{"user":"admin","pass":"Beethoven_PStroh"},"simple":true,"resolveWithFullResponse":false},"response":{"statusCode":400,"body":"<?xml version=\"1.0\" ?><exception><path>/db</path><message>exerr:ERROR org.exist.xquery.XPathException: err:XPST0003 unexpected token: matches [at line 3, column 7]\n</message></exception>","headers":{"content-type":"application/xml; charset=UTF-8","content-length":"186","server":"Jetty(9.4.57.v20241219)"},"request":{"uri":{"protocol":"http:","slashes":true,"auth":null,"host":"10.28.3.11:8080","port":"8080","hostname":"10.28.3.11","hash":null,"search":null,"query":null,"pathname":"/exist/rest/db","path":"/exist/rest/db","href":"http://10.28.3.11:8080/exist/rest/db"},"method":"POST","headers":{"Content-Type":"application/xml","authorization":"Basic YWRtaW46QmVldGhvdmVuX1BTdHJvaA==","content-length":237}}}}}