Match by response header

No, that’s not possible. Matching is on requests, once a response has begun to be written, it’s too late.

I don’t think I understand what you’re trying to do though. Could you elaborate? What do the requests look like (paths/headers and expected responses)?