Skip to content

OpenBrowse v1.10.0

Choose a tag to compare

@lujstn lujstn released this 23 Aug 22:38
v1.10.0
8bed7d2

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 as SESSION_NOT_FOUND,
    INVALID_API_KEY or SESSION_NOT_IDLE
  • message — a human-readable summary
  • resolution — the action a caller can take to fix it
  • detail — 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.