I want to handle de 404 error in console. The red ones.
I know that if I do something like
if (http.readyState === 4) {
if (http.status === 400) {
//some code
}
}
I will handle the error, but in the consele, it will appear in red. That is the errot taht I want to avoid.
Utils.js:701 GET http://url/url/id.pdf 404 (Not Found)