mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-12-05 07:25:08 +00:00
docs(rest-api): give the remote session protocol one page and move dl --remote setup to a user guide
This commit is contained in:
@@ -124,7 +124,7 @@ while the server restarts.
|
||||
| `NOT_FOUND` | 404 | A requested resource (title, history entry, and so on) does not exist. |
|
||||
| `NO_CONTENT` | 404 | The request was valid but produced nothing: no matching titles, tracks, episodes, or keys. |
|
||||
| `JOB_NOT_FOUND` | 404 | The referenced download job does not exist. |
|
||||
| `SESSION_NOT_FOUND` | 404 | The remote-dl session does not exist or has expired. |
|
||||
| `SESSION_NOT_FOUND` | 404 | The remote session does not exist or has expired. |
|
||||
| `TRACK_NOT_FOUND` | 404 | A referenced track ID is not present in the remote session. |
|
||||
| `CONFLICT` | 409 | The target resource is in a state that disallows the action (retrying a running job, prioritising a non-queued job, clearing cache during an active download). |
|
||||
| `SERVER_DRAINING` | 409 | The server is about to restart or stops, and starts no new remote session, remote login or download job. Open work continues. Retryable after the restart. A `dl --remote` client waits for the restart and opens a new remote session. |
|
||||
@@ -232,9 +232,9 @@ body that uses an integer `status` and no `error_code` or `timestamp`.
|
||||
|
||||
## Late failures with status `200`
|
||||
|
||||
The remote session `titles`, `tracks` and `license` routes send status `200` and the headers
|
||||
The remote session `titles`, `tracks`, `segments` and `license` routes send status `200` and the headers
|
||||
when the work takes longer than 30 seconds. They then send a newline every 30 seconds to keep
|
||||
the connection open. See [Slow responses](endpoints.md#slow-responses). A failure after that
|
||||
the connection open. See [Slow responses](remote-sessions.md#slow-responses). A failure after that
|
||||
time arrives as the standard error body, but with status `200`. The body has no field for the
|
||||
HTTP status that the error would otherwise have. `error_code` and `retryable` stay in the body.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user