Jak uzyskać błąd na karcie sieciowej na froncie

.catch((error) =>  {
   console.log(error.response);
   console.log(error.response.data);
});