From 3f7c7f35bfae642e8127ec0d21cb7fa9cfcfabe1 Mon Sep 17 00:00:00 2001 From: Raine Date: Sun, 15 Oct 2023 18:06:19 +0200 Subject: [PATCH] fix: error codes categories --- doc/proto.md | 1 + 1 file changed, 1 insertion(+) diff --git a/doc/proto.md b/doc/proto.md index 4d06b7d..ecee9e5 100644 --- a/doc/proto.md +++ b/doc/proto.md @@ -150,6 +150,7 @@ Send a packet to state an error occurred. | `status_code` | name | description | recoverable | |---------------|------------------------|----------------------------------------------------------------------------------------------|-----------------------------------| +| `0x1*` | `net_*` | **Network errors** | | | `0x00` | `net_duplicate_packet` | `reply_to` packet is invalid because another packet was sent recently with same `packet_id`. | resend with different `packet_id` | | `0x01` | `net_broken_packet` | recent packet was broken. | resend packet | | `0x02` | `net_invalid_packet` | the packet sent is not valid | send packet with proper values |