Codes the SDK assigns itself. Errors from a non-2xx response carry the server's code instead: an ApiErrorCode (core API_ERROR_CODES) from a 0.20.0+ service, else body.code, else body.error, else http_<status>.
ApiErrorCode
API_ERROR_CODES
body.code
body.error
http_<status>
invalid_options
invalid_request
invalid_response
timeout
timeoutMs
network_error
fetch
Codes the SDK assigns itself. Errors from a non-2xx response carry the server's code instead: an
ApiErrorCode(coreAPI_ERROR_CODES) from a 0.20.0+ service, elsebody.code, elsebody.error, elsehttp_<status>.invalid_options: createWatcherClient options are invalid.invalid_request: the request body failed the core request schema; nothing was sent.invalid_response: a 2xx response was not JSON or failed the core response schema.timeout: no response withintimeoutMs.network_error:fetchrejected (connection refused, DNS failure, …).