2
I get the following error message on my console:
POST http://localhost:8080/minhaURL 401 (Unauthorized)
I would like to know how to remove this error log from the console, because I’m already giving a visual feedback to the user that he missed something.
Just to put it in context, I am doing a POST with a password, and if it is incorrect, I return a 401.
EDIT:
JS
requestHandler.authenticate(password).then(function(response){
console.log('200 ok');
}).catch(function(err){
console.log('401 deu erro na validação')
});
This is the error message I’m referring to:
Post code and when it happens.
– novic
Okay, I’ll post it....
– fernandoocf
I think even if you treat, the error will continue to appear in the Console. The fact of treating does not mean that the error will stop being displayed on the console, but that now the user will get a satisfaction of what happened.
– Wallace Maxters
I think this is not possible because it is a behavior of the browser and not the Angularjs.
– BrTkCa
I already wondered if it could not be this @Lucascosta.... But then I wondered if someone has a way out...
– fernandoocf