diff --git a/panoramisk/fast_agi.py b/panoramisk/fast_agi.py
index <HASH>..<HASH> 100644
--- a/panoramisk/fast_agi.py
+++ b/panoramisk/fast_agi.py
@@ -39,7 +39,7 @@ class Request:
 
         agi_result = yield from self._read_result()
         # If Asterisk returns `100 Trying...`, wait for next the response.
-        while agi_result['status_code'] == 100:
+        while agi_result.get('status_code') == 100:
             agi_result = yield from self._read_result()
 
         # when we got AGIUsageError the following line contains some indication
Check if status_code is present in agi_result (#<I>)

* Check if status_code is present in agi_result



* Better handling for status_code is present in agi_result