Error
okbooleanrequired
Constant value:
falseerrorstringrequired
Short, stable, human-readable code suitable for logging or switch.
detail object
Always present. For simple errors it is a string identical to
error (the envelope guarantees both keys, so clients can read either).
For 422 validation errors it is instead the array of field-level
validation problems (FastAPI's error list).
- string
- object[]
string
messagestring
Legacy alias for detail. Clients should prefer error then detail.
Error
{
"ok": true,
"error": "string",
"detail": "string",
"message": "string"
}