Thrown for every non-2xx response once the error envelope has been parsed (or a transport/ parse failure prevented that). code is the platform's canonical error code (see ApiErrorCode) when the body parsed, else "UNKNOWN_ERROR".
code
ApiErrorCode
"UNKNOWN_ERROR"
Optional
Readonly
Thrown for every non-2xx response once the error envelope has been parsed (or a transport/ parse failure prevented that).
codeis the platform's canonical error code (seeApiErrorCode) when the body parsed, else"UNKNOWN_ERROR".