I am doing register with an endpoint for it. The problem now is handling validation when it comes from backend. That means when I send a username less than 6 letters backend respondes to that saying username should be more than 6 letters.

Now, the response from backend shows inside network tab, and shows in postman but when I do `console.log(response)` it shows an error saying `referenceError: response is not defined`.

My code

```
 axios.post(url, payload,{
                })
            .then( response => {

                console.log('response')
                console.log(response)
            } )

```

[![Response from network tab](https://i.stack.imgur.com/6QMNs.png)](https://i.stack.imgur.com/6QMNs.png)

[![response from postman](https://i.stack.imgur.com/QbnXa.png)](https://i.stack.imgur.com/QbnXa.png)

[![Response in console](https://i.stack.imgur.com/sUghO.png)](https://i.stack.imgur.com/sUghO.png)