In the catch, use console.log(error.response) to get more information about the error, such as status code and response details.