title: Getting HTTP response codes from a pcap with Scapy
body: <p>I'm reading a pcap file using <code>scapy</code> and I am interested in finding anomalies such as unusual TCP flags or HTTP codes like <code>403</code>, <code>429</code> etc.</p>
  
  <p>I am able to find out using TCP ports that this traffic belongs to HTTP but how to get status codes of HTTP and flags of TCP?</p>
  
  <p>This is what I have done so far:</p>
  
  <pre><code>for pkt in PcapReader(pcap):
      if (TCP in pkt and (pkt[TCP].sport == 80 or pkt[TCP].dport === 80)):
          pList.append(pkt)
  </code></pre>