class TestClient(suds.client.SoapClient):

    def failed(self, binding, error):
        print(error.httpcode, error.args)
suds.client.SoapClient = TestClient
Strange behavior from HTTP authentication with suds SOAP library