Expand description
Error type for the Nordnet API client.
Mirrors the documented HTTP status codes (400, 401, 403, 429, 503) plus
transport-level failures. Every non-2xx response carries the raw response
body string so callers can surface the documented ErrorResponse shape
({"code": ..., "message": ...}) without re-parsing in this layer.
Status mapping (per docs-source/nordnet-api-v2.html):
- 400 ->
Error::BadRequest(“Invalid parameter.”) - 401 ->
Error::Unauthorized(“Unauthorized to log in …”) - 403 ->
Error::Forbidden - 429 ->
Error::TooManyRequests(caller decides backoff; the docs suggest 10s, but the library never sleeps or retries — POST/PUT on/ordersis non-idempotent and a hidden retry could double-place) - 503 ->
Error::ServiceUnavailable(caller decides backoff; the server’sRetry-Afterheader is preserved on the underlying response but the library does not honor it automatically) - any other non-2xx ->
Error::UnexpectedStatus
Enums§
- Error
- All recoverable failures from the Nordnet API client.