Repository navigation
OpenBrowse v1.10.0
Structured v3 API errors
Error responses from the v3 API now carry a stable envelope instead of a bare
detail string. Every error body includes:
code— a stable, machine-readable identifier such asSESSION_NOT_FOUND,
INVALID_API_KEYorSESSION_NOT_IDLEmessage— a human-readable summaryresolution— the action a caller can take to fix itdetail— the original detail value, retained so existing clients keep working
The codes are also published in the OpenAPI schema, so generated clients can
branch on code rather than pattern-matching on English error text.
Error resolution is total: an unmapped status or an undocumented detail falls
back to a generic UNEXPECTED_ERROR envelope rather than raising inside the
exception handler, and bodyless statuses such as 204 and 304 stay bodyless.
Compatibility
The detail field is preserved, so clients reading only detail are
unaffected. Clients that assumed the error body had no other keys should be
checked before upgrading.