class ResponseError(Exception):
    """For throwing in case of a non-200 response status."""
    def __init__(self, *args, code=None, **kwargs):
        self.code = code
        super().__init__(*args, **kwargs)

@@ -112,15 +112,8 @@
 elf,
- *args,
  cod
@@ -121,19 +121,16 @@
 =None, *
-*kw
 args):%0A 
@@ -182,19 +182,15 @@
 t__(
-*args, **kw
+code, *
 args

Change constructor to be more appropriate