Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Расширили ошибку ответа при неверной авторизации #510

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -208,6 +208,8 @@ HTTP code | type | value | описание
403 | oauth | token_expired | время жизни access_token завершилось, необходимо [выполнить обновление access_token](authorization.md#refresh_token)
403 | oauth | token_revoked | токен отозван пользователем, приложению необходимо [запросить новую авторизацию](authorization.md)
403 | oauth | application_not_found | ваше приложение было удалено
403 | oauth | application_auth_expected | метод работает только с [авторизацией приложения](authorization_for_application.md)
403 | oauth | user_auth_expected | метод работает только с [авторизацией пользователя](authorization_for_user.md)


<a name="employer_payable_methods"></a>
Expand Down
10 changes: 6 additions & 4 deletions docs_eng/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,12 @@ api and your authorization is not valid for any reason, an error with `type`

| HTTP code | type | value | description |
|-----------|-------|-------------------------|--------------|
| 403 | oauth | bad_authorization | authorization token doesn't exist or is not valid |
| 403 | oauth | token_expired | access_token validity period has expired, it is necessary to [refresh the access_token](authorization.md#refresh_token) authorization.md#refresh_token |
| 403 | oauth | token_revoked | the token is revoked by the user, the application should [request a new authorization](authorization.md) |
| 403 | oauth | application_not_found | your application has been deleted
| 403 | oauth | bad_authorization | authorization token doesn't exist or is not valid |
| 403 | oauth | token_expired | access_token validity period has expired, it is necessary to [refresh the access_token](authorization.md#refresh_token) authorization.md#refresh_token |
| 403 | oauth | token_revoked | the token is revoked by the user, the application should [request a new authorization](authorization.md) |
| 403 | oauth | application_not_found | your application has been deleted
| 403 | oauth | application_auth_expected | method requires [application authorisation](authorization_for_application.md)
| 403 | oauth | user_auth_expected | method requires [user authorisation](authorization_for_application.md)


### Errors when accessing a paid method
Expand Down