Successful response
Top-level fields
The meta object
Error response
When a request fails,success is false and the response includes an error object instead of data.
Error object fields
The
QUOTA_EXCEEDED error (429) includes both an error object and a meta object so you can still read your quota state when you are over the limit. See Rate limits for the full example.Handling responses in code
Checksuccess first, then branch on error.code for specific handling: