Skip to content

Commit 8c4fe1c

Browse files
committed
Introduce ErrorResponse and use it everywhere for error responses
server: Introduce ErrorResponse and use it everywhere When an error is created when processing a client request, return an ErrorResponse JSON object that includes - title: short, human-readable description of the error - detail: optional, human-readable explanation of the error This standardizes the error response to common data structure. The field names and purpose are inspired by RFC 9457. For 409 errors (trace or experiment) return extended ErrorResponse containing the conflicting trace or experiment respectively. This commit also updates the documentation in respect to the ErrorResponses accordingly. This commit also fixes some incorrect or missing the definitions. Add description to Trace and Experiment model so that they are not overridden by the experiment/trace error description. Fixes #122
1 parent 16c5c0a commit 8c4fe1c

File tree

2 files changed

+266
-162
lines changed

2 files changed

+266
-162
lines changed

0 commit comments

Comments
 (0)