--json. Progress and errors go to stderr, so piping stdout gets only the result.
Errors
With--json, an error is printed as:
code is stable for scripts:
Exit codes
Retries
APOST that fails without an answer (a dropped connection, a server error) is sent once more with the same Idempotency-Key, so it never happens twice.