Question: In oracle DB I have a table say T which has columns id, att1, att2, att3. Now i also have a CSV file which has lots of id's in it along with one additional parameter.How to insert att2 corresponding to each id in the DB.
initially, csv is like

```
   id, random
   id, random
   .
   .

```

i.e after running the PL/SQL script csv file will look like:

```
   id, random, att2
   id, random, att2
   .
   .
   .

```

Answer: 
I think the concept that you like to use are `interceptors`.
In `vue-resource` you can define them for `request` and `response`.
An example for a interceptor:

```
Vue.http.interceptors.push(function(request, next) {

  // modify request ...

  // stop and return response
  next(request.respondWith(body, {
    status: 404,
    statusText: 'Not found'
  }));
});

```
Thanks to [C Sharper](https://stackoverflow.com/users/1487681/c-sharper) for the very good start point.
I've wrote here my final solution for posterity.

I've checked the `response` status in the interceptor and if it isn't `ok`, it will show a message to end-user, using the `$alert()` function.

Here the code:

```
Vue.http.interceptors.push(function(request, next) {
    next((response) => {
        if (!response.ok) {
            let message = "<summary>Unexpected error</summary><details>Error: " + response.status + " " + response.url + "</details>";
            this.$alert(message, 'Error', {
                "type" : "error",
                "dangerouslyUseHTMLString" : "true"
            });
        }
        return response;
    });
}

```