@staticmethod<EOL><INDENT>def decode(response):<DEDENT>
try:<EOL><INDENT>return response.json()<EOL><DEDENT>except ValueError as e:<EOL><INDENT>return e.message<EOL><DEDENT>
Decode the returned data in the response.

        Should be overridden by subclasses if something else than JSON is
        expected.

        Args:
            response (HTTPResponse): The response object.

        Returns:
            dict or None.