errors

Every error airspace throws extends AirspaceError, and all of them are exported from airspace, so you never catch a @atproto/lex error.

ErrorThrown whenCarries
ValidationErrora value fails its schema, on read or writecollection, rkey, issues
ConflictErrorthe PDS rejected an ifMatchcollection, rkey, cid
ScopeErrorthe session's grant predates a collection in your modelmissingScope
SpacesUnsupportedErrora space call against a PDS that does not serve spaces

A ScopeError means the user has to authorize again.