angularerror-handlinghttpresponsehttp-status-code-400400-bad-request

Bad request instead of message


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.


Solution

  • 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