Risuko
Reference

Error Codes

Complete reference of Risuko download engine error codes.

Risuko uses numeric error codes to identify download failures. Each error code belongs to a category based on its numeric range.

When a download fails, the error code and a human-readable message are stored on the task and displayed in the UI. In the task's JSON representation they appear as errorCode (the code as a string, e.g. "315") and errorMessage; both are omitted when the task has no error and cleared when it restarts.

Codes are assigned by pattern-matching the failure message text. Messages that match no pattern fall back to code 100.

Error Code Ranges

RangeCategory
1xxGeneral errors
2xxNetwork errors
3xxHTTP errors
4xxFile system errors
5xxProtocol-specific errors
9xxInternal engine errors

General Errors (1xx)

CodeNameDescription
100UnknownAn unclassified error occurred. Check the error message for details.

Network Errors (2xx)

CodeNameDescription
200DNS Resolution FailedCould not resolve the hostname. Verify the URL and your DNS settings.
201Connection RefusedThe remote server refused the connection. The server may be down or the port may be blocked.
202Connection ResetThe connection was reset by the remote host during transfer.
203Connection TimeoutThe connection timed out before a response was received.
204Network UnreachableNo network route to the host. Check your internet connection.
205TLS Handshake FailedSSL/TLS negotiation failed. The server's certificate may be invalid or the TLS version unsupported.
206Proxy Connection FailedCould not connect through the configured proxy server.

HTTP Errors (3xx)

CodeNameDescription
300UnauthorizedHTTP 401 — The server requires authentication credentials.
301ForbiddenHTTP 403 — Access to the resource is denied.
302Not FoundHTTP 404 — The requested file does not exist on the server.
303Range Not SatisfiableHTTP 416 — The server cannot fulfill the byte range request. The file may have changed.
304Too Many RequestsHTTP 429 — Rate limited by the server. Try again later.
305Server ErrorHTTP 5xx — An error occurred on the server side.
306Service UnavailableHTTP 503 — The server is temporarily unavailable.
307Redirect LoopToo many HTTP redirects were followed.
308Response ErrorAn unspecified HTTP response error.
315Cloudflare ChallengeCloudflare bot-protection detected on a 403/503/429 response. Import browser cookies to bypass — see the Browser Cookies guide.

File System Errors (4xx)

CodeNameDescription
400Disk FullNo space left on the target disk or storage quota exceeded.
401Permission DeniedInsufficient permissions to write to the download directory.

Protocol-Specific Errors (5xx)

BitTorrent

CodeNameDescription
500Metadata FailedFailed to resolve torrent metadata from peers or trackers.
501No SeedsNo seeders are available for this torrent.
502Invalid Torrent FileThe .torrent file is corrupt or not a valid BitTorrent metainfo file.
503BitTorrent v2 Piece Layers UnavailableA pure-v2 magnet resolved its info dict but no peer served the BEP 52 piece-layer hashes. The torrent cannot be verified until the layers are obtained — importing the .torrent file directly always works.

ED2K

CodeNameDescription
510Server UnreachableCould not connect to the ED2K server.
511File Not FoundThe file was not found on the ED2K network.

M3U8 / HLS

CodeNameDescription
520Parse FailedFailed to parse the M3U8 playlist. The URL may not point to a valid HLS stream.
521Segment FailedOne or more video segments failed to download.
522Decrypt FailedFailed to decrypt an encrypted HLS segment (AES-128).

FTP / SFTP

CodeNameDescription
530FTP Login FailedAuthentication failed. Check your username and password.
531FTP File Not FoundThe file does not exist on the FTP server.
532FTP Transfer FailedThe file transfer was interrupted or failed.
533SFTP Auth FailedSFTP authentication failed. Check your credentials or private key.
534SFTP Host Key FailedThe SFTP server's host key could not be verified, or the pinned fingerprint changed (TOFU).

Media (yt-dlp)

CodeNameDescription
540yt-dlp Not FoundThe yt-dlp binary could not be located on PATH. Install yt-dlp to enable media downloads.
541Authentication RequiredThe video requires login (sign-in, members-only, or age-restricted). Provide cookies via the cookies file option or a cookie header.
542Format UnavailableThe format selector in media-format (aliases youtube-format, yt-format) did not match any of the formats yt-dlp returned.

Internal Errors (9xx)

CodeNameDescription
900Engine Not RunningThe download engine is not running. Try restarting the application.

Troubleshooting

Common Fixes

  • 2xx Network errors: Check your internet connection, firewall, and DNS settings.
  • 3xx HTTP errors: Verify the download URL is correct and accessible in a browser. For error 315 (Cloudflare Challenge), use the Browser Cookies guide to import credentials from an installed browser.
  • 4xx File system errors: Ensure the download directory exists and has write permissions.
  • 5xx Protocol errors: Check protocol-specific settings (trackers, credentials, etc.).

Viewing Logs

For detailed error information, check the application log files. The log directory is shown under Preferences > Advanced > App log path. Log files are rotated daily and named risuko.log.YYYY-MM-DD.

On this page