@router.delete("/{product_id}", status_code=204)def delete_product_endpoint(product_id: int): ok = delete_product(product_id) if not ok: raise HTTPException(status_code=404, detail="Product not found") return