Skip to main content

Module rpc_error_codes

Module rpc_error_codes 

Source
Expand description

Peer-RPC JSON-RPC error codes from the L7 peer-network spec (§7, §9). Exposed so a node building its RPC surface over dig-nat maps transport outcomes to the exact catalogued codes.

Constants§

PEER_UNREACHABLE
-32006 PEER_UNREACHABLE — no connection to the named peer could be established (every traversal strategy failed) or the peer is not registered on this network. Maps from super::NatError::AllMethodsFailed.
RANGE_NOT_SATISFIABLE
-32007 RANGE_NOT_SATISFIABLE — the requested offset/length lies outside the resource, or the range is otherwise unsatisfiable.
RESOURCE_UNAVAILABLE
-32004 RESOURCE_UNAVAILABLE — the peer does not hold the resource/capsule at the requested root (try another source).