Reference

Errors

Error response format and common status codes.

For agents: Parse error.code and error.message, report both, and use events for owner-visible runtime detail.

Shape

{
  "error": {
    "code": "invalid_path",
    "message": "Release path must be relative."
  }
}

Common statuses are 400, 401, 403, 404, 409, 413, and 429.

Common Codes

Recovery

Use the CLI to inspect and recover:

npm run userland -- apps events "$APP_ID" --limit 25
npm run userland -- apps releases "$APP_ID"
npm run userland -- apps rollback "$APP_ID" "$RELEASE_ID"

See /guides/troubleshooting for the full debug path.