Skip to content

feat: Harden API response error handling for non-2xx responses#7

Open
Nexussyn wants to merge 10 commits into
2lll5:mainfrom
Nexussyn:feat/issue-1-harden-api-error-handling
Open

feat: Harden API response error handling for non-2xx responses#7
Nexussyn wants to merge 10 commits into
2lll5:mainfrom
Nexussyn:feat/issue-1-harden-api-error-handling

Conversation

@Nexussyn

Copy link
Copy Markdown

Summary

Updates the frontend API service to properly handle non-OK HTTP responses:

  • Throws structured ApiError for non-2xx status codes instead of returning them as successful data
  • Preserves structured error payload details from the backend
  • Ensures 401/429 error interceptors are reliably exercised
  • Removes need for callers to duplicate status checks

Closes #1

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.

[$40 BOUNTY] [TypeScript] Harden API response error handling

1 participant