def match_mime_type(ext):
    """Tries to match Mime Type to File Extension

    :param ext: File Extension as String
    :return: Mime Type as String
    """
    return {
        '.txt': 'text/plain',
        '.png': 'image/png',
        '.pdf': 'application/pdf',
        '.php': 'application/x-httpd-php',
        '.svg': 'image/svg+xml',
        '.ttf': 'font/ttf',
        '.zip': 'application/zip',
        '.htm': 'text/html',
        '.html': 'text/html',
        '.gif': 'image/gif',
        '.js': 'text/javascript',
        '.json': 'application/json'
    }.get(ext, "text/html")