[PR #11494] api: handle http reponse statuscode #13555

Open
opened 2026-04-13 00:30:05 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11494

State: open
Merged: No


Add a check for HTTP status codes >= 400 in the Client.stream method. When such a response is received, return a StatusError containing the status code and status text. This improves error handling for streaming API calls.

**Original Pull Request:** https://github.com/ollama/ollama/pull/11494 **State:** open **Merged:** No --- Add a check for HTTP status codes >= 400 in the Client.stream method. When such a response is received, return a StatusError containing the status code and status text. This improves error handling for streaming API calls.
GiteaMirror added the pull-request label 2026-04-13 00:30:05 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#13555