class

QBittorrent::ApiError

Inherits QBittorrent::Error < Exception < Reference < Object

Raised for a non-success (non-2xx) HTTP response from an authenticated API call. qBittorrent frequently returns meaningful status codes with a body (e.g. 409 when queueing is disabled, 415 for invalid torrents), so both the status code and the raw body are surfaced.

Constructors

new(status_code : Int32, body : String)
Source

Instance methods

body
Source
status_code
Source