SignInService / Client / exceptions / ServiceQuotaExceededException
ServiceQuotaExceededException¶
- class SignInService.Client.exceptions.ServiceQuotaExceededException¶
Error thrown when service quota is exceeded
HTTP Status Code: 402 Payment Required (used as quota exceeded indicator)
Used when the request would cause a service quota to be exceeded
Example
try: ... except client.exceptions.ServiceQuotaExceededException as e: print(e.response)
- response¶
The parsed error response. All exceptions have a top level
Errorkey that provides normalized access to common exception atrributes. All other keys are specific to this service or exception class.Syntax
{ 'error': 'TOKEN_EXPIRED'|'USER_CREDENTIALS_CHANGED'|'INSUFFICIENT_PERMISSIONS'|'AUTHCODE_EXPIRED'|'server_error'|'INVALID_REQUEST'|'RESOURCE_NOT_FOUND'|'CONFLICT'|'SERVICE_QUOTA_EXCEEDED', 'message': 'string', 'Error': { 'Code': 'string', 'Message': 'string' } }
Structure
(dict) –
Error thrown when service quota is exceeded
HTTP Status Code: 402 Payment Required (used as quota exceeded indicator)
Used when the request would cause a service quota to be exceeded
error (string) –
OAuth 2.0 error code indicating service quota exceeded Will be SERVICE_QUOTA_EXCEEDED
message (string) –
Detailed message explaining which quota was exceeded Provides specific information about the limit and current usage
Error (dict) – Normalized access to common exception attributes.
Code (string) – An identifier specifying the exception type.
Message (string) – A descriptive message explaining why the exception occured.