trustgraph/specs/api/components/responses/Error.yaml

24 lines
605 B
YAML
Raw Normal View History

description: Error response
content:
application/json:
schema:
type: object
properties:
error:
oneOf:
- type: string
description: Simple error message
- $ref: '../schemas/errors/ErrorObject.yaml'
description: Structured error with type and message
examples:
simpleError:
summary: Simple error message
value:
error: Invalid flow ID
structuredError:
summary: Structured error
value:
error:
type: gateway-error
message: Timeout