90b8a01b8a
Immich v2.6 changed the API response for password-protected shared links from "Invalid password" to "Password required" when no password token is provided. The previous string match on the message caused the proxy to fall through to the catch-all and return 404 instead of showing the password entry page. Match on the 401 status code alone, since this endpoint only returns 401 for password-related reasons. This is backwards compatible with older Immich versions and resilient to future message wording changes. Fixes #198 Made-with: Cursor