What is important is what structure the backend returns the error to you, what you need to do is to first understand the structure of the error and log it, and after seeing the log field, save it in a signal (or variable) and Use it. for example:
.subscribe({
next: () => {
//When backend is happy!
},
error: (error : HttpErrorResponse) => {
console.log(error.error)
this.errorMessage.set(error.error.message)
}
})