code your agent can branch on, a human-readable message, and — on demo failures — a remediation field describing what to do next, so failures are machine-actionable rather than English prose to parse.
Error codes
Demo-failure codes
Returned infailure.code on a finished-but-unsuccessful demo — the request itself succeeded, but the demo couldn’t complete:
Run
director doctor if you’re not sure whether a problem is your setup or something on Director’s end — it checks your credentials, environment, and whether Director itself is reachable.