diff --git a/aftership/__init__.py b/aftership/__init__.py
index <HASH>..<HASH> 100644
--- a/aftership/__init__.py
+++ b/aftership/__init__.py
@@ -1,11 +1,16 @@
-import requests
 import json
 import time
 import threading
+import requests
 
 __author__ = 'Fedor Korshunov <mail@fedor.cc>'
 
 
+class AftershipRequestException(Exception):
+    def __getitem__(self, attribute):
+        return self.message[attribute]
+
+
 class RequestPart(object):
     def __init__(self, path='', base=None):
         self._path = path
@@ -73,4 +78,9 @@ class API(RequestPart):
                                     headers=headers,
                                     params=params,
                                     data=json.dumps(body))
-        return json.loads(response.text)
\ No newline at end of file
+        ret = json.loads(response.text)
+
+        if not response.ok:
+            raise AftershipRequestException(ret)
+
+        return ret
\ No newline at end of file
Exceptions raise on error response from aftership API