def handle500error(ns):
    """
    Function to handle a 500 (unknown) error.
    """

    message = "Unknown error, please contact administrator."

    return ns.abort(500, status=message, statusCode="500")