Exception: ReveAI::UnauthorizedError

Inherits:
APIError show all
Defined in:
lib/reve_ai/errors.rb

Overview

Raised on 401 Unauthorized responses.

Indicates invalid or missing API key.

Examples:

client = ReveAI::Client.new(api_key: "invalid-key")
client.images.create(prompt: "A cat")
# => ReveAI::UnauthorizedError: Invalid API key

Instance Attribute Summary

Attributes inherited from APIError

#body, #headers, #status

Method Summary

Methods inherited from APIError

#error_code, #initialize, #request_id

Constructor Details

This class inherits a constructor from ReveAI::APIError