Hello, We are using REST in our application/project and were trying to figure out how to retrieve/use the HTTP Header and Status from the response for exception handling. Example for HttpStatus: 200 OK Example for HttpHeader: Key - ErrorCode Value - 1337 Error Detected I tried finding documentation on this to no avail. Further noted: We are using the "Call REST" action in the microflows. is this supported in version 6.10.2? If not, is there a temporary work-around solution available for this?
The native functionality is quite limited. However, if you use the REST module from the appstore (https://appstore.home.mendix.com/link/app/997/Mendix/Rest-Services) there is an action: getResponseHeader that you can use to access the response headers.
You can either use it to fetch all the (known) keys, or you have to tweak it in order to retrieve a list of headers, and filter in the MF to find the key.
Accesssing HttpStatus and HttpHeader are not supported in Mendix 6.10. It will be available in Mendix 7 release.
As for workaround, you can try REST module as suggested by Rik Bos.