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 -32006PEER_UNREACHABLE — no connection to the named peer could be established (every traversal strategy failed) or the peer is not registered on this network. Maps fromsuper::NatError::AllMethodsFailed.- RANGE_
NOT_ SATISFIABLE -32007RANGE_NOT_SATISFIABLE — the requestedoffset/lengthlies outside the resource, or the range is otherwise unsatisfiable.- RESOURCE_
UNAVAILABLE -32004RESOURCE_UNAVAILABLE — the peer does not hold the resource/capsule at the requested root (try another source).