Implemented in commit: `[NX-101 Issue] Refactor error handling to use consistent API error format`.
## Done
- Introduced a shared API error payload format across backend responses:
- `code`
- `message`
- `details`
- `request_id`
- Added centralized error helpers and request ID middleware/handlers.
- Standardized 4xx/5xx responses (including validation and unhandled exceptions) to the same JSON shape.
- Replaced ad-hoc `HTTPException(detail="...")` patterns in affected routes/services with structured error objects.
- Updated target connectivity/discovery/ownership/not-found cases to return stable error codes.
- Updated frontend API error parsing so UI can reliably consume `code`, `details`, and `request_id`.
- Documented common API error codes and payload format in README.
## Notes
- Background collector connection failures remain log events (not API responses), while API endpoints now return consistent structured JSON errors.
- Compile check passed: `python -m compileall backend/app`.
NX-101 acceptance criteria are met.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Goal
Return a consistent error payload shape for all API errors.
Scope
Acceptance Criteria
Implemented in commit:
[NX-101 Issue] Refactor error handling to use consistent API error format.Done
codemessagedetailsrequest_idHTTPException(detail="...")patterns in affected routes/services with structured error objects.code,details, andrequest_id.Notes
python -m compileall backend/app.NX-101 acceptance criteria are met.