OffstageError with a status, a stable code (such as sandbox-closed, bad-path or no-capacity), a message, a fix that says what to do, and the plane’s requestId. isOffstageError(e) tests for one.
Idempotency-Key and retry network errors and 502, 503 and 504 answers, so a lost response never makes a second sandbox. A command is never started twice.
Every code is listed in the Errors API reference.