# Error codes for IBM MQ

**URL:** <https://community.dynatrace.com/t/error-codes-for-ibm-mq/10962>\
**Category:** Extensions\
**Tags:** problem-detection, ibm, extensions, queues, ibm-mq\
**Created:** [February 15, 2018, 8:27pm UTC](https://community.dynatrace.com/t/error-codes-for-ibm-mq/10962 "2018-02-15T20:27:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![SSelvaraj11](https://avatars.discourse-cdn.com/v4/letter/s/c0e974/32.png) [@SSelvaraj11](https://community.dynatrace.com/u/SSelvaraj11)\
**Post date:** [February 15, 2018, 8:27pm UTC](https://community.dynatrace.com/t/error-codes-for-ibm-mq/10962/1 "2018-02-15T20:27:56Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![asahoo1](https://avatars.discourse-cdn.com/v4/letter/a/d2c977/32.png) [@asahoo1](https://community.dynatrace.com/u/asahoo1)\
**Post date:** [February 15, 2018, 8:51pm UTC](https://community.dynatrace.com/t/error-codes-for-ibm-mq/10962/2 "2018-02-15T20:51:57Z")

</div>

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.
