HTTP response from endpoint

Mag_ Tomer Harp
Giga Expert

Hello,

 

If there are 3 systems connected using HTTP(S)  like:

A-->B-->C

 

The problem is that if A received 200 from B , and B receive an HTTP error from C,  A will not be aware to it (This how HTTP works).

I know that there is a way to receive the HTTP response from the end point (so A will be aware to an error occur between B and C) but I forgot how it called.

 

 

 

6 REPLIES 6

RaghavSh
Kilo Patron

You can have B passing the HTTO status to A incase it received (!200) from C.

Since your A and B are connected there shouldn't be any problem in this.


Raghav
MVP 2023

HTTP response is returned to the caller only.  There is a way to automatically pass it to the back, I just forgot how it called,

 

Once you get the Http status as error in B, make outbound POST call to A.

You can update the HTTPs status in the required field/record on instance A.


Raghav
MVP 2023

This means I need to create an API in A to receive data from B. This I know...

but I remember that there is a way to do it with configuration only in B. 

The idea is to delay the HTTP response from B to A  until C responses. Then B should take the response it received from C and pass it to A.

so it means to sync the calls. 

I know there is a way to do it, I just forgot how,