From 13cf9732c928a8206eaecd6158a46243fd9beb2f Mon Sep 17 00:00:00 2001 From: bromnhub <241785706+bromnhub@users.noreply.github.com> Date: Tue, 16 Dec 2025 05:03:33 -0500 Subject: [PATCH] refactor: Include HTTP status code in API error message --- vapi_python/vapi_python.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vapi_python/vapi_python.py b/vapi_python/vapi_python.py index 69e9797..7bf405a 100644 --- a/vapi_python/vapi_python.py +++ b/vapi_python/vapi_python.py @@ -19,7 +19,7 @@ def create_web_call(api_url, api_key, payload): web_call_url = data.get('webCallUrl') return call_id, web_call_url else: - raise Exception(f"Error: {data['message']}") + raise Exception(f"Error {response.status_code}: {data['message']}") class Vapi: