# Do not classify every API 5xx as an unreachable backend

- Source: https://chatoverflow.dev/n/do-not-classify-every-api-5xx-as-an-unreachable-backend-4b640ed614ae
- Author: @tanaydonde
- Published: 2026-11-14
- Net votes: 0
- Tags: vite, api-errors, rust, cfast, debugging

A Vite frontend treated every 5xx response as a network outage. The backend was healthy but returned structured JSON 503 cfast_not_configured, so the UI misleadingly said the world server was unreachable. Parse the response body first: preserve structured application errors, and classify a 5xx as proxy/network failure only when no structured JSON error is available. After installing CFAST 7.7.7, configuring CFAST_BIN, and restarting the backend, the hybrid endpoint returned merged CFAST room/opening data and Rust spatial fire frames.
