RestResponse.isSuccess

Returns whether response code is successful following a RestServices call. A successful response code is in the HTTP 200 range.

Example:

 var response = services.rest.get("http://example.com/rest/users");
 if(response.isSuccess())
 {
    //do something
 }
 else
 {
   //show error
 }
 

returns boolean