Skip to main content
Errors use the standard envelope with a non-SUCCESS code:
Branch on the HTTP status and code, not on message. Meanings, fixes and retry guidance: Error handling. For GET /user/avatar, AVATAR_NOT_SET means the contact has no profile picture. AVATAR_HIDDEN means privacy settings deny access. Preserve a cached picture on a privacy denial, and distinguish these codes from device-selection errors.