mirror of
https://github.com/unshackle-dl/unshackle.git
synced 2026-11-14 13:05:09 +00:00
fix(api)!: key the health route and keep server internals from user keys
/api/health needs X-Secret-Key but stays outside the rate limit. Only the admin key gets load_errors from /api/services, default error details no longer name the exception class, and a prepare signal replaces aiohttp's Server banner on every response while the CDM routes keep their own.
This commit is contained in:
@@ -221,8 +221,7 @@ body that uses an integer `status` and no `error_code` or `timestamp`.
|
||||
!!! warning "Handle both shapes"
|
||||
A client must expect two error formats: the standard structured error
|
||||
(string `status` of `"error"`, with `error_code`), and this authentication error
|
||||
(integer `status`, no `error_code`). The `GET /api/health` endpoint is exempt
|
||||
from authentication, so it never returns the key-error shape.
|
||||
(integer `status`, no `error_code`).
|
||||
|
||||
## Late failures with status `200`
|
||||
|
||||
|
||||
Reference in New Issue
Block a user