160 lines
4.8 KiB
YAML
160 lines
4.8 KiB
YAML
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
|