Exception: ReveAI::BadRequestError

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

Overview

Raised on 400 Bad Request responses.

Indicates invalid request parameters or malformed request body.

Examples:

# Prompt too long
client.images.create(prompt: "x" * 10000)
# => ReveAI::BadRequestError: Prompt exceeds maximum length

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