<!--
{
  "availability" : [
    "Sign in with Apple REST API: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "signinwithapple",
  "identifier" : "/documentation/SigninwithAppleRESTAPI/ErrorResponse",
  "metadataVersion" : "0.1.0",
  "role" : "Object",
  "symbol" : {
    "kind" : "Object",
    "modules" : [
      "Sign in with Apple REST API"
    ],
    "preciseIdentifier" : "data:appleid_signin_server_api:ErrorResponse"
  },
  "title" : "ErrorResponse"
}
-->

# ErrorResponse

The error object returned after an unsuccessful request.

```
object ErrorResponse
```

## Discussion

The `error` property contains exactly one of the following values:

- `invalid_request`: The request is malformed, typically because it’s missing a parameter, contains an unsupported parameter, includes multiple credentials, or uses more than one mechanism for authenticating the client.
- `invalid_client`: The client authentication failed, typically due to a mismatched or invalid client identifier, invalid client secret (expired token, malformed claims, or invalid signature), or mismatched or invalid redirect URI.
- `invalid_grant`: The authorization grant or refresh token is invalid, typically due to a mismatched or invalid client identifier, invalid code (expired or previously used authorization code), or invalid refresh token.
- `unauthorized_client`: The client isn’t authorized to use this authorization grant type.
- `unsupported_grant_type`: The authenticated client isn’t authorized to use this grant type.
- `invalid_scope`: The requested scope is invalid.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)