1 try {
2 await axios.get('/bad-call')
3 } catch (error) {
4 const err = error as AxiosError
5 if (err.response) {
6 console.log(err.response.status)
7 console.log(err.response.data)
8 }
9 this.handleAxiosError(error)
10 }