Skip to content

fix(api): align API error response contract#3308

Merged
aofei merged 1 commit into
goplus:devfrom
aofei:api-errors
Jul 6, 2026
Merged

fix(api): align API error response contract#3308
aofei merged 1 commit into
goplus:devfrom
aofei:api-errors

Conversation

@aofei

@aofei aofei commented Jun 25, 2026

Copy link
Copy Markdown
Member

Document the shared REST error envelope, stable error code catalog, and reusable response components so clients can decode API failures consistently.

Document OAuth protocol error responses separately from APIError, including no-store headers and client-auth challenges, while keeping identity provider form-post callback failures on the shared API error envelope.

Decode OAuth error payloads in the frontend client and keep retry metadata handling aligned with documented backend error responses.

gemini-code-assist[bot]

This comment was marked as resolved.

@fennoai

fennoai Bot commented Jul 2, 2026

Copy link
Copy Markdown
Contributor

An internal error occurred. Please try again later.

View job run

Comment thread docs/openapi.yaml Outdated
Comment thread spx-gui/src/apis/common/exception.ts Outdated
Comment thread spx-gui/src/apis/common/client.ts
Document the shared REST error envelope, stable error code catalog,
and reusable response components so clients can decode API failures
consistently.

Document OAuth protocol error responses separately from `APIError`,
including no-store headers and client-auth challenges, while keeping
identity provider form-post callback failures on the shared API error
envelope.

Decode OAuth error payloads in the frontend client and keep retry
metadata handling aligned with documented backend error responses.

Signed-off-by: Aofei Sheng <aofei@aofeisheng.com>
@aofei aofei merged commit 4128d99 into goplus:dev Jul 6, 2026
5 checks passed
@aofei aofei deleted the api-errors branch July 6, 2026 07:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants