-3

I have a small backend. Some of my methods give a response of 404 (for example, the user was not found) or 400 (request parameters error). Similarly, there is a small frontend. It intercepts all errors as needed and works quite successfully.

The only annoying thing is that when we get a response that is quite correct for frontend, from the backend, on the browser console, we get an error message like:

standart output

How to suppress this output?

Or will it disappear by itself if I switch from the "Development" mode to "Prod"?

Matthieu Riegler
  • 31,918
  • 20
  • 95
  • 134
  • 1
    Try your suggestion first and let us know: `ng serve -c production` – Myles Morrone Aug 24 '23 at 15:47
  • Does this answer your question? [Suppress Chrome 'Failed to load resource' messages in console](https://stackoverflow.com/questions/4500741/suppress-chrome-failed-to-load-resource-messages-in-console) – gre_gor Aug 25 '23 at 13:24

0 Answers0