I get the following error message in my console:
POST http://localhost:8080/minhaURL 401 (Unauthorized)
I would like to know how I can remove this error log from the console, since I am already giving a visual feedback to the user that he missed something.
Just to contextualize, I'm 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 an error message which I am referring to: