1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
# Error
type: object
properties:
code:
type: string
description: "Error code"
example: RESOURCE_NOT_FOUND
message:
type: string
description: "Error message"
example: "Requested resource not found"
target:
type: string
description: "Related resource"
example: "/products/42"
details:
type: object
properties:
code:
type: string
description: "Detailed error code"
example: "MongoDB:2038"
message:
type: string
description: "Detailed error message"
example: "MongoDB: no document with ObjectID 42"
required:
- code
- message
required:
- code
- message
|