HttpErrorMapper
org.llm4s.llmconnect.provider.HttpErrorMapper
object HttpErrorMapper
Shared HTTP status-code to org.llm4s.error.LLMError mapping used by all HTTP-based LLM provider clients.
Centralises the duplicated pattern of converting non-2xx responses into typed Result errors. Provider-specific error details are extracted from the JSON response body when possible and truncated to a safe length.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
- Self type
-
HttpErrorMapper.type
Members list
In this article