Error codes for IBM MQ

We have Z/OS agents for our Mainframe region to monitor our mainframe transactions . Few of our MQ’s are getting failed with return code ‘2033’, but the purepath is not in failed status. we want the purepath to fail when a MQ is getting failed.

I know we have Error detection techniques for HTTP response codes, but I don’t see any rules for Messaging or MQSeries API. Is there a workaround to do this?

Basically, the Purepath does not fail when an MQGET fails although the return value of an MQGET call is recorded as 2033 (the MQRC-Response code).

Is there any way to define an error rule for MQ failures and mark the transaction as failed just like any HTTP response code of 500 is done.