Added main tcp-connection packets handling. Added support for ErrorResponse.