API reference › @evolu/common › local‑first/Protocol › ProtocolErrorCode

type ProtocolErrorCode =
  (typeof ProtocolErrorCode)[keyof typeof ProtocolErrorCode];

Defined in: packages/common/src/local-first/Protocol.ts:462

The error code in the header of a Response.

A client reports a code it does not know as ProtocolInvalidDataError, which carries no OwnerId, and that relay's round for the owner ends. Every released client does this, so a relay can add a code under the same protocolVersion only where that outcome is acceptable.