Above code
```
  if (msg.errorCode != tizen.WebAPIError.NO_ERROR) {
    // the handle error code 
  }

  // the non-error code
```