- Add content-type check before attempting JSON parsing of error responses - Fall back to text() for non-JSON error responses - Add comprehensive test suite for API error handling scenarios - Test coverage for JSON, text, and empty error response bodies
29 KiB
29 KiB