def deserialize_from_headers(headers):
    """Deserialize a DataONE Exception that is stored in a map of HTTP headers (used in
    responses to HTTP HEAD requests)."""
    return create_exception_by_name(
        _get_header(headers, 'DataONE-Exception-Name'),
        _get_header(headers, 'DataONE-Exception-DetailCode'),
        _get_header(headers, 'DataONE-Exception-Description'),
        _get_header(headers, 'DataONE-Exception-TraceInformation'),
        _get_header(headers, 'DataONE-Exception-Identifier'),
        _get_header(headers, 'DataONE-Exception-NodeId'),
    )