This request seems redundant? Unless theres a good reason why the F5 wouldn't provide any response to your malicious XXE request (ie when patched). You already check the actual request to see if res is nil or res.code = 200 so just add an else and print_error?