Home
Types of error response
The broker generates three types of response:
OK response
This indicates that the command completed successfully. The response consists of a message that contains an MQRFH format header with the CompCode tag name in the NameValueString set to the value of MQCC_OK.
An OK response is sent by the broker if the command message was sent with a MsgType of MQMT_REQUEST, or if it was sent with a MsgType of MQMT_DATAGRAM and the MQRO_PAN Report option was set.
Warning response
This indicates that the command was only partially successful. The response consists of a message that contains an MQRFH format header with the CompCode tag name in the NameValueString set to the value of MQCC_WARNING. The Reason and the ReasonText tag names and values identify the nature of the warning.
A warning response is sent by the broker if the command message was sent with a MsgType of MQMT_REQUEST, or if it was sent with a MsgType of MQMT_DATAGRAM and either the MQRO_PAN or MQRO_NAN Report options were set.
Error response
This indicates that the command has failed. The response consists of a message that contains an MQRFH format header with the CompCode name in the NameValueString set to the value of MQCC_FAILED. The Reason and the ReasonText names and values identify the nature of the failure, and additional names and values can be used to give more information.
Error responses are sent by the broker if the command message was sent with a MsgType of MQMT_REQUEST, or if it was sent with a MsgType of MQMT_DATAGRAM and the MQRO_NAN Report option was set.
Home