OPDC API error code

UNAUTHORIZED

HTTP status 401

Missing, malformed or unknown API key. 401.

The API answers with a problem document (RFC 9457) whose type is https://twinn.engineering/errors/unauthorized, and with X-Error-Code: UNAUTHORIZED. Branch on the code, never on the detail text.

How errors work, and what to retryEvery error code