Erreurs types

400 Bad Request

Identifiant client et/ou clé secrète erroné ou absent

HTTP 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "invalid_client",
  "error_description": "Client authentication failed"
}

 

Scope inconnu ou pour lequel vous ne disposez pas des droits (utilisation d'une API sans souscription)

HTTP 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "invalid_scope",
  "error_description": "Unknown/invalid scope(s): [api_quinexistepasv0]"
}

 

Mauvaise cinématique OAuth

HTTP 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "unsupported_grant_type",
  "error_description": "Grant type is not supported: implicit_grant"
}

 

Code d'authentification erroné ou absent

HTTP 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "invalid_grant",
  "error_description": "The provided access grant is invalid, expired, or revoked."
}

 

URI de redirection erronée ou absente

HTTP 400 Bad Request
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

{
  "error": "redirect_uri_mismatch",
  "error_description": "The redirection URI provided does not match a pre-registered value."
}

 

401 Unauthorized

Access token absent de la requête

HTTP 401 Unauthorized
Content-Type: application/json
Cache-Control: no-store
Pragma: no-cache

 

429 Too Many Requests

Dépassement de quota

HTTP 429 Too Many Requests
Content-Type: text/plain
Retry-After: [Nombre de secondes à attendre avant de réémettre la requête]
Cache-Control: no-store
Pragma: no-cache