def state_to_error_response(state):
    """Return None if the zone is OK, otherwise return an ErrorResponse."""
    if state['state'] == 'Stale':
        return {
            'type': 'ENDPOINT_UNREACHABLE',
            'message': ''
        }
    return None