code is stable and can be matched in code. message is for people. details is present when there is more to say, such as which fields were wrong, and is omitted otherwise.
Error codes
The SDK adds one more code,
NETWORK, when the server could not be reached at all.
Related
- SDK errors: how they look in TypeScript.
- Authentication: resolve 401 and 403.