def create_error_message(message='Error was happened.'):
    """Create a error message dict for JSON

    :param message: error message
    :return: dict contain a error message
    """
    return {'error': message}