def post(self, name): if StoreModel.find_by_store_name(name): return {"message": f"store {name} Exists"}, 400 else: store = StoreModel(name) try: store.add_store_to_db() return {"message": "store Created successfully"} except Exception as e: return {"message": f"Error with Connecting db, {e}"}, 500