I am using Google admin-sdk batch API for most of my use cases. I wonder how does google respond when the user hits rateLimit (API Quota). Does it set the outer response as 403 or individual response with 403 response code?
Asked
Active
Viewed 55 times
1 Answers
1
According to the documentation, the API will return a JSON code with three different Reasons, depending of the issue causing the exception:
For example:
{
"error":{
"errors":[
{
"domain":"usageLimits",
"reason":"dailyLimitExceeded",
"message":"Daily Limit Exceeded. Please sign up",
"extendedHelp":"https://code.google.com/apis/console"
}
],
"code":403,
"message":"Daily Limit Exceeded. Please sign up"
}
}

Jescanellas
- 2,555
- 2
- 9
- 20