This is a known quirk of many Google APIs, including Gmail. Some error responses use numeric code fields (e.g., 403), while others may return them as strings (e.g., "403"). This depends on which internal service returns the error and the language client you’re using.