def statusError(pkt):
if pkt[<NUM_LIT:7>] == <NUM_LIT>:<EOL><INDENT>return pkt[<NUM_LIT:8>]<EOL><DEDENT>return -<NUM_LIT:1><EOL>
Grabs the status (int) from an error packet and returns it. It retuns -1
if the packet is not a status packet.