Skip to content

Commit

Permalink
HH-102580 Add new error descriptions to documentation
Browse files Browse the repository at this point in the history
  • Loading branch information
alexeynagatkin committed Jun 6, 2024
1 parent 8c546ec commit 853155b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ HTTP code | type | value | описание
403 | negotiations | too_long_message | передан слишком длинный текст письма
403 | negotiations | address_not_found | переданный к действию по адрес не существует, либо принадлежит другому работодателю
403 | negotiations | not_enough_purchased_services | не хватает оплаченных услуг, обычно [доступа к базе резюме](https://hh.ru/price#dbaccess)
403 | negotiations | reached_the_daily_limit_for_the_manager | достигли суточного лимита по менеджеру (500)
403 | negotiations | reached_employers_daily_limit | достигли суточного лимита по работодателю (8000)
403 | negotiations | reached_quota_limit | достигли лимита по квоте
403 | negotiations | no_access_to_resume_database | нет доступа к базе резюме
403 | negotiations | in_a_row_limit | превышено количество последовательных сообщений в переписке, оппонент должен ответить на сообщение, чтобы появилась возможность писать вновь
403 | negotiations | overall_limit | превышен лимит сообщений
403 | negotiations | no_invitation | переписка недоступна, так как в отклике ещё не было приглашения
Expand All @@ -304,6 +308,10 @@ HTTP code | type | value | reason | описание
----------|------|-------|-------|---------
400 | bad_json_data | *field_name* | *reason* | ошибка в поле вакансии, где *field_name* – ключ поля верхнего уровня, поле reason может не присутствовать
403 | vacancies | not_enough_purchased_services | | купленных услуг для публикации или обновления данного типа вакансии не достаточно
403 | vacancies | reached_the_daily_limit_for_the_manager | достигли суточного лимита по менеджеру (500)
403 | vacancies | reached_employers_daily_limit | достигли суточного лимита по работодателю (8000)
403 | vacancies | reached_quota_limit | достигли лимита по квоте
403 | vacancies | no_access_to_resume_database | нет доступа к базе резюме
403 | vacancies | quota_exceeded | | квота менеджера на публикацию данного типа вакансии закончилась
403 | vacancies | duplicate | | аналогичная вакансия уже опубликована. В [ответе](#vacancies-duplicate-response) передается информация по дубликатам вакансии. Данную ошибку можно форсировано отключить (при [добавлении](employer_vacancies.md#creation) и [редактировании](employer_vacancies.md#edit-ignore-duplicates))
403 | vacancies | creation_forbidden | | публикация вакансий недоступна текущему менеджеру
Expand Down Expand Up @@ -374,6 +382,10 @@ items[].id | number | Идентификатор вакансии
HTTP code | type | value | описание
----------|------|-------|---------
403 | vacancies | not_enough_purchased_services | купленных услуг для продления данного типа вакансии не достаточно
403 | vacancies | reached_the_daily_limit_for_the_manager | достигли суточного лимита по менеджеру (500)
403 | vacancies | reached_employers_daily_limit | достигли суточного лимита по работодателю (8000)
403 | vacancies | reached_quota_limit | достигли лимита по квоте
403 | vacancies | no_access_to_resume_database | нет доступа к базе резюме
403 | vacancies | quota_exceeded | квота менеджера на публикацию данного типа вакансии закончилась
403 | vacancies | prolongation_forbidden | продление вакансий недоступно текущему менеджеру
403 | vacancies | unavailable_for_archived | продление недоступно для архивной вакансии
Expand Down
12 changes: 12 additions & 0 deletions docs_eng/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,6 +283,10 @@ HTTP code| type| value| description
403 | negotiations | address_not_found | the address sent for the action does not exist or belongs to another employer
403 | negotiations | not_enough_purchased_services | the required paid services are not available, this usually refers to [access to the resume database](https://hh.ru/price#dbaccess)
403 | negotiations | not_enough_purchased_services | the paid services are insufficient, usually [CV database service](https://hh.ru/price#dbaccess)
403 | negotiations | reached_the_daily_limit_for_the_manager | reached the daily limit for the manager (500)
403 | negotiations | reached_employers_daily_limit | reached the daily limit for the employer (8000)
403 | negotiations | reached_quota_limit | reached quota limit
403 | negotiations | no_access_to_resume_database | no access to resume database
403 | negotiations | in_a_row_limit | the number of successive messages is exceeded; the opponent must reply to the message in order the employer is able to send new messages
403 | negotiations | overall_limit | messages limit exceeded
403 | negotiations | no_invitation | negotiations are unavailable as there was no invitation in the response
Expand Down Expand Up @@ -316,6 +320,10 @@ HTTP code| type| value| description
----------|------|-------|---------
400 | vacancies | *field_name* | the is an error in a job's field, where the *field_name* is the key of the upper level field and the reason field may be missing
403 | vacancies | not_enough_purchased_services | the purchased services are not enough to publish or update this type of job
403 | vacancies | reached_the_daily_limit_for_the_manager | reached the daily limit for the manager (500)
403 | vacancies | reached_employers_daily_limit | reached the daily limit for the employer (8000)
403 | vacancies | reached_quota_limit | reached quota limit
403 | vacancies | no_access_to_resume_database | no access to resume database
403 | vacancies | quota_exceeded | the manager's quota for the publication of this type of job is exhausted
403 | vacancies | duplicate | a similar job has already been published; the [response](#vacancies-duplicate-response) contains information about duplicate jobs; this error can be disabled by force (when [adding](employer_vacancies.md#creation) or [editing](employer_vacancies.md#edit-ignore-duplicates))
403 | vacancies | creation_forbidden | jobs cannot be published by the current manager
Expand Down Expand Up @@ -385,6 +393,10 @@ In addition to the error code, the following errors can be returned when [extend
HTTP code | type | value | description
----------|------|-------|---------
403 | vacancies | not_enough_purchased_services | the purchased services are insufficient for prolongation of this type of vacancy
403 | vacancies | reached_the_daily_limit_for_the_manager | reached the daily limit for the manager (500)
403 | vacancies | reached_employers_daily_limit | reached the daily limit for the employer (8000)
403 | vacancies | reached_quota_limit | reached quota limit
403 | vacancies | no_access_to_resume_database | no access to resume database
403 | vacancies | quota_exceeded | the manager's quota for posting of this type of vacancies has been exceeded
403 | vacancies | prolongation_forbidden | extension of vacancies is unavailable for the current manager
403 | vacancies | unavailable_for_archived | extension of vacancies is unavailable for the archived vacancy
Expand Down

0 comments on commit 853155b

Please sign in to comment.