HTTP response from endpoint
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 03:36 AM
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 03:58 AM
Hello @Mag_ Tomer Harp ,
You can use the below line of code
var httpStatus = response.getStatusCode();
also please refer below docs link
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-10-2023 05:42 AM
If I add it in A I will not give me the status from C.