package api import ( "net/http" "testing" "gitea.dooplex.hu/admin/felhom-controller/internal/stacks" "gitea.dooplex.hu/admin/felhom-controller/internal/util" ) // D4 (`16` §5): the no-drive refusal is a 400 the household can act on — not a 500. func TestD4_NeedsDriveIs400(t *testing.T) { err := util.MsgErrorf(stacks.ErrNeedsDrive, "err.stacks.needs_drive") if got := deployStatusFor(err); got != http.StatusBadRequest { t.Fatalf("ErrNeedsDrive → %d, want 400", got) } }