error object:
invalid_request, missing_authentication, invalid_authentication, insufficient_scope, not_found, conflict, rate_limited, and internal_error.
API error responses also include X-Request-Id. If you send X-Request-Id with the request, SpaPortal echoes that value. Otherwise, SpaPortal generates a new one.
API v1 keeps the legacy success and message shape:
Handling errors
Read both the HTTP status and the JSON error code or message. Treat400, 401, 404, and 422 as client-correctable errors. Retry only after you change the request.
Treat 500 as a temporary server error. Retry with backoff if the operation is safe to repeat.