def err(error_dictionary):
    """
    Formats the error response as wanted by the Flask app
    :param error_dictionary: name of the error dictionary
    :return: tuple of error message and error number
    """
    return {'error': error_dictionary['message']}, error_dictionary['code']