Hi Shaaland
is it possible to turn the $ErrorMessage$ into a JSON variable?
I have the following returning in the error message and I only really need the “message” part:
'HTTP Response Errors: 400 Bad Request x-mashery-message-id: 3f403125-551d-43fb-9e19-cc735857d05a x-mashery-responder: 50-rt10 strict-transport-security: max-age=15552000; includeSubDomains; preload Content-Security-Policy: upgrade-insecure-requests x-xss-protection: 1; mode=block x-frame-options: DENY x-content-type-options: nosniff cache-control: no-cache, must-revalidate, max-age=0, no-store, private Referrer-Policy: strict-origin-when-cross-origin Vary: Origin, X-HTTP-Method-Override Content-Length: 164 Content-Type: application/json; charset=UTF-8 Date: Tue, 22 Aug 2023 14:05:06 GMT Connection: keep-alive Keep-Alive: timeout=5
{“message”:“The event data contains duplicate value for an existing primary key. Please correct the event data and try again.”,“errorcode”:30000,“documentation”:“”}’