Bad request instead of message

459 Views Asked by At

i hava a problem that i am unble to figure whats i am doing wrong. So basically backend sends the error message but somehow browser is overwrites the message with Bad request.

Screen shoot of message that browser retuens me.

This is the response from API

I want to know why my browser is giving me bad request instead of response.

1

There are 1 best solutions below

1
On BEST ANSWER

Without to see your code I think you can solve the problem with the observe option inside the http request. The observe option gives you the full response.

Angular Guide Http

HTTP Client observe

Greetings, Flo