'Create an Error instance with an ACME Error code.
:unicode code: An ACME error code, like \'dnssec\'.
:kwargs: kwargs to pass to Error.'

@classmethod
def with_code(cls, code, **kwargs):

    if (code not in ERROR_CODES):
        raise ValueError(('The    supplied    code:    %s    is    not    a    known    ACME    error    code' % code))
    typ = (ERROR_PREFIX + code)
    return cls(typ=typ, **kwargs)
