fix error 401 repsonses