Files
plainleaf/plug-api
dkoosis@gmail.comandZef Hemel fa2d6d9a2d Fix HTTP 500 errors locking client outside offline mode
When the server returns HTTP 500 or other 5xx errors, the client
was caching the error HTML page (e.g., Nginx error pages) and
attempting to parse it as JSON on boot, causing a lockout with
the message 'Could not process config and no cached copy'.

This fix adds all standard 5xx server error codes to the
offlineStatusCodes list, ensuring the client enters offline mode
and uses cached data instead of caching error responses.

Before: Only 502, 503, 504, 530 triggered offline mode
After: All 5xx errors (500-511, 530) trigger offline mode

Fixes #1724
2026-01-05 14:55:15 +01:00
..
2025-11-07 10:49:13 +01:00
2025-12-10 09:48:09 +01:00
2025-12-10 09:48:09 +01:00
2024-05-25 23:12:48 +02:00
2024-08-07 13:27:25 +02:00

This folder contains two things:

  • Wrappers for syscalls to be used by Plugs
  • Reusable library code that plugs may find useful