Status codes, errors, and scope matrix·View as Markdown

Errors & scopes

Status codes

CodeMeaning
400Bad request (missing fields, invalid estimate token, protocol unsupported)
401Missing / invalid Bearer token
403Insufficient scope, workspace mismatch, bucket not allowed, feature disabled
404Not found — or dogfood gate (intentionally opaque)
502Upstream job kick failed (e.g. Trigger drain)

Error body is usually JSON: { "error": "...", "required"?: ... }.

Scope matrix

ScopeUsed for
workspaces:readList/get workspaces
buckets:readList/get buckets
buckets:writeCreate/patch buckets
buckets:deleteDelete buckets
files:readList, get, search, similar
files:writePatch tags/description, mkdir
files:deleteSoft-delete files
files:uploadPresign upload + complete
files:downloadPresign download
intelligence:readGet intelligence config/progress
intelligence:writePatch config, backfill
agent:runBucket agent
shares:read / shares:writeShares
transfers:read / transfers:writeTransfers

MCP tools enforce the same scopes — see MCP tools.

Errors & scopes · file.rocks docs