http: implement 401 response handling