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