HSX_E_API_UNEXPECTED

Unexpected API response.

What this error means

Upstream returned a status outside the expected 2xx/4xx/5xx ranges.

When this error stops a command, hs-x exits with code 50. With --json, the failure is reported as a structured error whose code field is HSX_E_API_UNEXPECTED — stable to match on in scripts and agents.

Likely causes

  • Bug
  • Unusual proxy in front of the API

How to fix it

  • Re-run with --debug and file an issue if it reproduces

Still stuck? Re-run the command with --debug for the wire-level detail, or hs-x doctor to check accounts, link state, and connectivity in one pass.