better HTTP login errors management