Moved error codes out of packet loss sequence