Detect any failure.

def hook_response(self, response):
        " Detect any failure."
        # Decode content with json.
        response._content = json.loads(response.content)
        return response