SignInService / Client / exceptions / ResourceNotFoundException

ResourceNotFoundException

class SignInService.Client.exceptions.ResourceNotFoundException

Error thrown when requested resource is not found

HTTP Status Code: 404 Not Found

Used when the specified resource does not exist

Example

try:
  ...
except client.exceptions.ResourceNotFoundException as e:
  print(e.response)
response

The parsed error response. All exceptions have a top level Error key 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 requested resource is not found

    HTTP Status Code: 404 Not Found

    Used when the specified resource does not exist

    • error (string) –

      OAuth 2.0 error code indicating resource not found Will be RESOURCE_NOT_FOUND

    • message (string) –

      Detailed message explaining which resource was not found Provides specific information about the missing resource

    • 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.