@classmethod
def from_code(cls, code, *args, **kwargs):
    """
        Create an error object from code
        """
    if code in cls.INDEX:
        return cls(code, *args, **kwargs)
    return None
