I have this axios code and I can't reach response status code. What is wrong here? I get 'undefined' instead of 201, for example.
Thanks in advance!
axios.post('endpoint', { body })
.then((response) => {
console.log(response.status);
})