def get_err_msg(code):
    """
    This function formats an error message depending on what error code is
    generated by the HTTP request. We wrap the error message in a HTML page
    so that it can be displayed by the client.
    """
    if code == '404':
        str = 'Function Not Implemented'
    else:
        str = 'Page Not Found'
    return ("<html>\n<head>\n"+"<title>"+code+": "+str+"</title>\n"+"</head>\n<body>\n<center>"+"<h2>Error "+code+": "+str+"</h2>"+"</center>\n</body>\n</html>\n")