def error_page_404(status, message, traceback, version):
 return '\n<html>\n    <head>\n      <script type="text/javascript">\n      <!--\n      location.href = location.protocol + \'//\' + location.hostname + (location.port ? \':\' + location.port : \'\') + \'/sabnzbd/\' ;\n      //-->\n      </script>\n    </head>\n    <body><br/></body>\n</html>\n'

def error_page_404 ( status , message , traceback , version ) : return '\n<html>\n    <head>\n      <script type="text/javascript">\n      <!--\n      location.href = location.protocol + \'//\' + location.hostname + (location.port ? \':\' + location.port : \'\') + \'/sabnzbd/\' ;\n      //-->\n      </script>\n    </head>\n    <body><br/></body>\n</html>\n'
custom handler for 404 error .