correcting http auth failure code