ValidationFailed: description: >- Parameters, headers, or the body do not match the contract, or the body violates a domain rule such as salary_from <= salary_to. The body has code validation_failed and lists the failing fields in `errors` with body or parameter pointers. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: validation_failed: $ref: ./examples.yml#/ValidationFailed domain_rule: $ref: ./examples.yml#/DomainValidationFailed Unauthenticated: description: No valid session or credentials; code unauthenticated. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: unauthenticated: $ref: ./examples.yml#/Unauthenticated Forbidden: description: >- The caller is authenticated but may not perform the operation; code forbidden. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: forbidden: $ref: ./examples.yml#/Forbidden NotFound: description: >- The object does not exist or is not visible to the caller; code not_found. Missing and inaccessible objects are not distinguished. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: not_found: $ref: ./examples.yml#/NotFound IdempotencyInProgress: description: >- A request with the same Idempotency-Key and the same fingerprint is still being processed; code idempotency_in_progress. Retry after the original request completes. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: idempotency_in_progress: $ref: ./examples.yml#/IdempotencyInProgress StateConflict: description: >- The operation conflicts with the current state of the resource, for example a transition that is not allowed from its current status; code state_conflict. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: state_conflict: $ref: ./examples.yml#/StateConflict PreconditionFailed: description: >- If-Match does not match the current resource version; code version_conflict. Nothing was changed. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: version_conflict: $ref: ./examples.yml#/VersionConflict PayloadTooLarge: description: The request body exceeds the operation limit; code payload_too_large. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: payload_too_large: $ref: ./examples.yml#/PayloadTooLarge UnprocessableContent: description: >- The Idempotency-Key was already used with a different request within 24 hours; code idempotency_key_reused. Nothing was changed. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: idempotency_key_reused: $ref: ./examples.yml#/IdempotencyKeyReused PreconditionRequired: description: The operation requires If-Match; code precondition_required. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: precondition_required: $ref: ./examples.yml#/PreconditionRequired TooManyRequests: description: Too many requests; code rate_limited. headers: Retry-After: $ref: ./headers.yml#/RetryAfter content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: rate_limited: $ref: ./examples.yml#/RateLimited Internal: description: Unexpected server error; code internal. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: internal: $ref: ./examples.yml#/Internal NotImplemented: description: >- The operation is declared in the contract but not implemented yet; code not_implemented. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: not_implemented: $ref: ./examples.yml#/NotImplemented Problem: description: >- Any error response. The body is a Problem whose `status` equals the HTTP status and whose `code` is one of ProblemCode. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: validation_failed: $ref: ./examples.yml#/ValidationFailed not_found: $ref: ./examples.yml#/NotFound internal: $ref: ./examples.yml#/Internal not_implemented: $ref: ./examples.yml#/NotImplemented RegistrationValidationFailed: description: >- The body does not match the contract or violates a registration rule: a password outside 15-128 characters or on the blocklist, or a consent text version that is not the current one; code validation_failed with body pointers. An email that already belongs to an account is never a validation error. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: validation_failed: $ref: ./examples.yml#/RegistrationValidationFailed EmailVerificationFailed: description: >- The token cannot verify an email. Code verification_token_expired means the token is past its lifetime; verification_token_invalid means it is unknown, already used, or replaced by a newer link; validation_failed with the pointer `/token` means the token is malformed. Nothing was changed in any case. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: verification_token_expired: $ref: ./examples.yml#/VerificationTokenExpired verification_token_invalid: $ref: ./examples.yml#/VerificationTokenInvalid validation_failed: $ref: ./examples.yml#/VerificationTokenMalformed InvalidCredentials: description: >- The email and password do not match an account; code invalid_credentials. An unknown email and a wrong password get the same response. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: invalid_credentials: $ref: ./examples.yml#/InvalidCredentials CsrfCheckFailed: description: >- The request failed cross-site request protection: the X-CSRF-Token header is missing or does not belong to the session, or the Origin is not allowed; code csrf_check_failed. Nothing was changed. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: csrf_check_failed: $ref: ./examples.yml#/CsrfCheckFailed CsrfCheckFailedOrForbidden: description: >- The request failed cross-site request protection, code csrf_check_failed: the X-CSRF-Token header is missing or does not belong to the session, or the Origin is not allowed. Or the account may not perform the operation, code forbidden. Nothing was changed in either case. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: csrf_check_failed: $ref: ./examples.yml#/CsrfCheckFailed forbidden: $ref: ./examples.yml#/Forbidden QuestionnaireValidationFailed: description: >- The body does not match the contract or violates a questionnaire rule: more than two specializations, an unknown specialization, grade, or task language, an unknown field such as confirmed_grade, a repeated specialization, or a task language that the specialization's published bank does not offer; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was changed. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: too_many_specializations: $ref: ./examples.yml#/QuestionnaireTooManySpecializations unknown_grade: $ref: ./examples.yml#/QuestionnaireUnknownGrade repeated_specialization: $ref: ./examples.yml#/QuestionnaireRepeatedSpecialization QuestionnaireVersionConflict: description: >- `expected_version` is not the current questionnaire version; code version_conflict. Nothing was changed; read the questionnaire again before retrying. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: version_conflict: $ref: ./examples.yml#/VersionConflict AssessmentAttemptCreateValidationFailed: description: >- The body does not match the contract or violates an assessment rule: an unknown specialization, grade, or task language, an unknown field such as mode or seed, a specialization that is not in the questionnaire, or a task language that the published bank does not offer; code validation_failed with body pointers. Nothing was created, and the outcome is not stored under the Idempotency-Key. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: specialization_not_in_questionnaire: $ref: ./examples.yml#/AssessmentSpecializationNotInQuestionnaire AssessmentAnswerValidationFailed: description: >- The body does not match the contract or the answer does not fit the item: a format other than the item format, an option, element, or line that the item does not have, an order that is not a permutation of every element, more selections than the item allows, a text longer than the item allows, a language that the practice does not offer, or an unknown field such as score or duration; code validation_failed with body pointers. When the decoder does not record the path of a nested field, the pointer is the whole body. Nothing was stored, and the outcome is not stored under the Idempotency-Key. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: unknown_option: $ref: ./examples.yml#/AssessmentAnswerUnknownOption score_sent_by_client: $ref: ./examples.yml#/AssessmentAnswerUnknownField AssessmentCommandConflict: description: >- The attempt state does not allow the answer at the current version, code state_conflict: the attempt is terminal or past its limits, the item is not the current item, the item already has a different answer, or the practice has a pending or finished verdict and the submission differs. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was changed in either case; read the attempt to see its state. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: state_conflict: $ref: ./examples.yml#/AssessmentItemNotCurrent idempotency_in_progress: $ref: ./examples.yml#/IdempotencyInProgress AssessmentFinalizeConflict: description: >- The attempt state does not allow finalize at the current version, code state_conflict: items or the main practice are unfinished, a practice verdict is pending, or the attempt ended as expired or insufficient_bank. The problem does not list the unfinished parts, because Problem allows no extension fields; the attempt shows them in `state`, `progress`, `current_item`, and `practices`. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was changed in either case. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: state_conflict: $ref: ./examples.yml#/AssessmentFinalizeNotReady idempotency_in_progress: $ref: ./examples.yml#/IdempotencyInProgress AssessmentCreateConflict: description: >- No attempt can start for the category now, code state_conflict: the specialization already has an active attempt, a retry or promotion interval or the attempt limit blocks the grade, or the bank is insufficient. GetMyAssessmentAvailability tells which, with the date when a blocked attempt opens. Or a request with the same Idempotency-Key is still running, code idempotency_in_progress. Nothing was created in either case. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: state_conflict: $ref: ./examples.yml#/AssessmentAttemptNotAvailable idempotency_in_progress: $ref: ./examples.yml#/IdempotencyInProgress AssessmentResultNotReady: description: >- The attempt is still active, so it has no result yet; code state_conflict. The attempt state tells what remains to be done. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: state_conflict: $ref: ./examples.yml#/AssessmentResultNotReady AssessmentVersionConflict: description: >- `expected_version` is not the current attempt version; code version_conflict. Nothing was changed, and the outcome is not stored under the Idempotency-Key; read the attempt again before retrying. content: application/problem+json: schema: $ref: ./schemas.yml#/Problem examples: version_conflict: $ref: ./examples.yml#/AssessmentStaleVersion