• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

agentjido / req_llm / 59946ee0fb9c2267927f5c80a45ed9d0dce5b65d-PR-108

16 Oct 2025 07:42PM UTC coverage: 50.261% (-0.1%) from 50.361%
59946ee0fb9c2267927f5c80a45ed9d0dce5b65d-PR-108

Pull #108

github

mikehostetler
Fix #65: Add HTTP status validation to StreamServer

- Check HTTP status code before processing data chunks
- Build proper API error from error JSON response body
- Halt stream with error when status >= 400
- Prevents error JSON from being passed to SSE parser

Previously, HTTP error responses (4xx/5xx) were being passed to the
SSE parser which couldn't parse them, resulting in empty streams with
no error information. Now errors are properly captured and propagated
through the metadata task.

Amp-Thread-ID: https://ampcode.com/threads/T-2bb95463-44a7-4d42-887c-2c7d24d5155a
Co-authored-by: Amp <amp@ampcode.com>
Pull Request #108: Fix #65: Add HTTP status validation to StreamServer

4 of 14 new or added lines in 2 files covered. (28.57%)

175 existing lines in 3 files now uncovered.

3275 of 6516 relevant lines covered (50.26%)

445.83 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

0.0
/lib/examples/agent.ex


Source Not Available

STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc