31 lines
1.0 KiB
YAML
31 lines
1.0 KiB
YAML
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:
|
|
summary: Request parameters do not match the contract
|
|
value:
|
|
type: urn:lincodex:problem:validation_failed
|
|
title: Request validation failed
|
|
status: 400
|
|
code: validation_failed
|
|
detail: One or more request fields are invalid.
|
|
errors:
|
|
- in: query
|
|
pointer: /limit
|
|
code: invalid
|
|
message: The value does not match the contract.
|
|
internal:
|
|
summary: Unexpected server error
|
|
value:
|
|
type: urn:lincodex:problem:internal
|
|
title: Internal server error
|
|
status: 500
|
|
code: internal
|
|
detail: The server could not complete the request.
|