Files
data-formulator/tests/backend/errors
y-agent-ai 5fe5754fca fix: Unify error handling protocol, all application errors return HTTP 200 status code
Adjust the backend error handling protocol to uniformly return HTTP 200 status code for all application control errors, with error information identified through the status field in the response body. Modified error handlers, route handling logic, and related test cases to ensure the frontend can correctly handle error responses.

- Modify error_handler.py global error handler to always return HTTP 200
- Update all route handling logic, remove explicit HTTP error status codes
- Adjust test cases to verify the new error handling protocol
- Update frontend apiClient.ts to handle error responses for streaming requests
- Improve related documentation explaining the new error handling specifications
2026-04-25 01:29:30 +08:00
..