ECMA Script: HttpUtil executeUrl: request status

Hi,

I’m using

responseJSON = HttpUtil.executeUrl(httpMethod, url , headers, null, null, timeout);

to request an external service.

How can I get the status of the executeUrl-Call? i.e. 200 if success

Frank

Well, since you are using the Java HttpUtil it appears that you can’t. You’ll have to either use the features built into ECMA Script or you’ll have to use the raw Java HTTP classes to make the request.