The getStatus function is established to get the http status after calling a restAPI. Its return is an integer number.
var ret = rest.get("http://localhost:8080/restSample/efwRestAPI/customer/u001");
// {"id":"u001","nm":"customer name"}
var status = rest.getStatus();
// 200
Calling | Returning |
---|---|
rest . getStatus ( ) | number |