API calls using <data> tag - Capture 500s/404s errors
Posted: Tue May 23, 2017 11:47 am
Hi Plum
We are trying to find if we can capture the response body and response headers in case of 500s/400s errors when using <data> tag for invoking REST APIs.
We know that Plum throws badfetch exception for 500s/400s errors and are handling these exceptions using the catch block as shown below
<catch event="error.badfetch.https.415 error.badfetch.http.415">
However we don't know how to extract response body and response headers in case of 500s/400s.
Kindly let us know. Thanks.
Thanks & Regards
Vikas Prasad
We are trying to find if we can capture the response body and response headers in case of 500s/400s errors when using <data> tag for invoking REST APIs.
We know that Plum throws badfetch exception for 500s/400s errors and are handling these exceptions using the catch block as shown below
<catch event="error.badfetch.https.415 error.badfetch.http.415">
However we don't know how to extract response body and response headers in case of 500s/400s.
Kindly let us know. Thanks.
Thanks & Regards
Vikas Prasad