def get_serializer_error_response(error):
    """
    Returns error response from serializer

    :param str error: message
    :return: error_response
    :rtype: object
    """
    error_response = {"status": 422, "data": [], "message": error}
    return error_response