@classmethod
def from_response(cls, response):
    """
        Create a ``KubernetesError`` for the given error response from a
        Kubernetes server.

        :param twisted.web.iweb.IResponse response: The response to inspect
            for the error details.

        :return Deferred(KubernetesError): The error with details attached.
        """
    from ._model import v1_5_model
    return cls.from_model_and_response(v1_5_model, response)
