diff --git a/articles/api/authentication/api-authz/_get-token.md b/articles/api/authentication/api-authz/_get-token.md index 8f0dc5a9f9..9738635486 100644 --- a/articles/api/authentication/api-authz/_get-token.md +++ b/articles/api/authentication/api-authz/_get-token.md @@ -438,7 +438,7 @@ Content-Type: application/json ``` ```JSON -HTTP/1.1 400 BAD REQUEST +HTTP/1.1 403 Forbidden Content-Type: application/json { // Can be retried @@ -448,7 +448,7 @@ Content-Type: application/json ``` ```JSON -HTTP/1.1 400 BAD REQUEST +HTTP/1.1 429 Too Many Requests Content-Type: application/json { // Can be retried @@ -458,7 +458,7 @@ Content-Type: application/json ``` ```JSON -HTTP/1.1 400 BAD REQUEST +HTTP/1.1 403 Forbidden Content-Type: application/json { // Cannot be retried; transaction failed diff --git a/articles/flows/guides/device-auth/includes/request-tokens.md b/articles/flows/guides/device-auth/includes/request-tokens.md index f8858f5257..d2b1de6a53 100644 --- a/articles/flows/guides/device-auth/includes/request-tokens.md +++ b/articles/flows/guides/device-auth/includes/request-tokens.md @@ -50,6 +50,8 @@ While you wait for the user to authorize the device, you may receive a few diffe You will see this error while waiting for the user to take action. Continue polling using the suggested interval retrieved in the previous step of this tutorial. ```json +`HTTP 403` + { "error": "authorization_pending", "error_description": "..." @@ -61,6 +63,8 @@ You will see this error while waiting for the user to take action. Continue poll You are polling too fast. Slow down and use the suggested interval retrieved in the previous step of this tutorial. To avoid receiving this error due to network latency, you should start counting each interval after receipt of the last polling request's response. ```json +`HTTP 429` + { "error": "slow_down", "error_description": "..." @@ -76,6 +80,8 @@ Then `expired_token` error will be returned exactly once; after that, the dreade ::: ```json +`HTTP 403` + { "error": "expired_token", "error_description": "..." @@ -87,6 +93,8 @@ Then `expired_token` error will be returned exactly once; after that, the dreade Finally, if access is denied, you will receive: ```json +`HTTP 403` + { "error": "access_denied", "error_description": "..."