Skip to main content

Error

okbooleanrequired
Constant value: false
errorstringrequired

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).

oneOf
string
messagestring

Legacy alias for detail. Clients should prefer error then detail.

Error
{
"ok": true,
"error": "string",
"detail": "string",
"message": "string"
}