You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Brain returns errors as Error(0x00FF) frames bound to a
stream_id. The payload carries an ErrorCode variant plus a
human-readable message and optional details.
Errors group into nine categories. Each maps to a retryability
class (error.rs:52–57):
Category
Retryable?
Meaning
Protocol
no
The frame itself is malformed. Don't retry; fix the client.
Authentication
no
AUTH was rejected, missing, or expired.
Authorization
no
The agent lacks permission for this op.
Validation
no
Request fields didn't pass validation.
NotFound
no
The targeted resource doesn't exist.
Conflict
no
Idempotency or transaction conflict.
ResourceExhausted
yes
Slot / disk / memory / rate cap hit; back off and retry.
Internal
yes
Server bug or transient infrastructure failure.
Unavailable
yes
Shard restarting, overloaded, or in maintenance.
Idempotent operations (those carrying request_id) are always
safe to retry on a retryable category; same request_id will
hit the dedupe cache and return the original response.
Catalog
Protocol
Code
Returned when
BadMagic
First 4 bytes of the frame aren't BRN0. Usually a non-Brain client connected to listen_addr.
BadHeaderCrc
The header CRC32C didn't match. Network corruption or bug in client.
BadPayloadCrc
Payload CRC didn't match. As above.
BadOpcode
Opcode is unknown, or used in the wrong direction.
BadVersion
Frame's version byte doesn't match the negotiated version.