We did it the "easy" way. If you have specific errors that are being sent back, you'll have the BMXAA ID referenced. We had a limited set that were being returned and what specific status code they were expecting. We just appended that to the end of the error text. Find out if your external system can extract the text at the end of the error message you're sending to identify the status code. Note that this was only for errors being returned as 500. They were ok with the other standard codes - 200, 400+, etc.
------------------------------
MM
------------------------------
Original Message:
Sent: 10-23-2024 16:40
From: Rana Ahmed
Subject: Set the response code in custom script handler
Do you know any documentation for this
------------------------------
Rana Ahmed
Maximomize
------------------------------
Original Message:
Sent: 10-22-2024 09:58
From: Manu Maganti
Subject: Set the response code in custom script handler
The external system was able to use status 500 with the specific status code appended at the end of each message.
------------------------------
MM
Original Message:
Sent: 10-22-2024 09:54
From: Rana Ahmed
Subject: Set the response code in custom script handler
Hi Manu,
Thanks for the vote.
What was the path you took for it?
------------------------------
Rana Ahmed
Maximomize
Original Message:
Sent: 10-22-2024 08:36
From: Manu Maganti
Subject: Set the response code in custom script handler
I had a similar requirement but ended up doing it a different way. Voted for your idea.
------------------------------
Manu Maganti
EMA, Inc
Original Message:
Sent: 10-21-2024 15:40
From: Rana Ahmed
Subject: Set the response code in custom script handler
Added it here. It would be great if others can up vote it
Let us return response | IBM Sustainability Software - Ideas Portal
------------------------------
Rana Ahmed
Maximomize
Original Message:
Sent: 10-21-2024 14:53
From: Steven Shull
Subject: Set the response code in custom script handler
Unfortunately, no but this would be a good enhancement request. You can request the enhancement here: https://ibm-ai-apps.ideas.ibm.com/ideas/
------------------------------
Steven Shull
IBM