Skip to main content
Answer

can we programatically manipulate the HTTP status code that is returned by a HTTP connector?

  • February 8, 2024
  • 1 reply
  • 59 views

Forum|alt.badge.img+6

When we receive a json containing data and the task that processes the data fails (incorrect foreign key for example) the response json is always returned with status code 200 OK.
Can I change that?
I see it is an output parameter but in the documentation isn't clear about if it is editable.

Best answer by Vincent Doppenberg

Hello @Alban_T,

Yes, this is possible by using a custom protocol process flow. Please check this two part blog post on how you can achieve this. Note that when calling this process flow, the URL should contain an /open/ segment, like this:

<indicium>/open/iam/my_appl/my_process_flow

I hope this helps.

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+4

Hello @Alban_T,

Yes, this is possible by using a custom protocol process flow. Please check this two part blog post on how you can achieve this. Note that when calling this process flow, the URL should contain an /open/ segment, like this:

<indicium>/open/iam/my_appl/my_process_flow

I hope this helps.