401 error do not reach the client