🐞 Describe the Bug
When the backend is unavailable, the Profile and Card pages show "Profile not found" and "Card not found" even though the requested profile/card may still exist.
For example, if the backend server is not running and I visit /u/test or /devcard/test, the browser console shows ERR_CONNECTION_REFUSED, but the UI still displays a "not found" message.
The issue is not that the request fails when the backend is down. The issue is that all API failures are treated as "not found" responses, making it impossible to distinguish between an actual 404 and a network/server error.
Steps to reproduce:
- Run the web app with the backend unavailable.
- Visit
/u/test or /devcard/test.
- Observe the UI and browser console.
Expected behavior:
A network/server error should show a more appropriate message (e.g. unable to load profile/card) and reserve "not found" only for genuine 404 responses.
Actual behavior:
All failures are displayed as "Profile not found" or "Card not found".
Environment
- OS: Windows 11
- Browser: Brave
🐞 Describe the Bug
When the backend is unavailable, the Profile and Card pages show "Profile not found" and "Card not found" even though the requested profile/card may still exist.
For example, if the backend server is not running and I visit
/u/testor/devcard/test, the browser console showsERR_CONNECTION_REFUSED, but the UI still displays a "not found" message.The issue is not that the request fails when the backend is down. The issue is that all API failures are treated as "not found" responses, making it impossible to distinguish between an actual 404 and a network/server error.
Steps to reproduce:
/u/testor/devcard/test.Expected behavior:
A network/server error should show a more appropriate message (e.g. unable to load profile/card) and reserve "not found" only for genuine 404 responses.
Actual behavior:
All failures are displayed as "Profile not found" or "Card not found".
Environment