What's changed
Clearer login failure message. LoginFailedException thrown by login() now also says which login endpoint
was used and how the controller type was detected, for example:
HTTP response: 404 (POST /api/login; GET / returned 404, so treated as a classic controller)
A 404 means there is no UniFi Network login at the configured URL: check the URL, the port and any reverse proxy in
between. A 400, 401 or 403 means the controller rejected the credentials.
The message still starts with HTTP response: <code>, and the exception class and code are unchanged, so existing
error handling keeps working.
Full changelog: v2.4.0...v2.4.1