Exception: OllamaChat::HTTPError

Inherits:
OllamaChatError show all
Defined in:
lib/ollama_chat.rb

Overview

Error raised when an HTTP request returns a non‑200 status code.

Instance Attribute Summary collapse

Instance Attribute Details

#statusInteger

Returns the HTTP status code that caused the error.

Returns:

  • (Integer)

    the HTTP status code that caused the error.



40
41
42
# File 'lib/ollama_chat.rb', line 40

def status
  @status
end