t800zippygod2020-10-11 19:13:18
t800zippygod, 2020-10-11 19:13:18

Angular server response format?

Good day!
I am developing a frontend on Angular, the following question arose:
If the server does not respond in JSON format, an HttpErrorResponse error is thrown in the application, with the explanation “Failed to parse JSON”.
How to customize it for yourself? After all, not every server responds with JSON

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question