I have an application that calls another API. That API will return a certain header which I wish to capture, but the header is only returned if the status is 429. If I list the header in the Connect-REST rule (in the response header table) then the rule will fail if the header is missing in the actual HTTP response. The error it gives is "error mapping inbound data".
How can I capture a header in the Connect-REST rule that only exists on certain occasions?
I am on Pega version 7.4
***Edited by Moderator Marissa to update platform capability tags****