def badParameterResponse(msg, ajax=None):
 if ajax:
  return sabnzbd.api.report('json', error=msg)
 else:
  return ('\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">\n<html>\n<head>\n           <title>SABnzbd %s - %s</title>\n</head>\n<body>\n<h3>%s</h3>\n%s\n<br><br>\n<FORM><INPUT TYPE="BUTTON" VALUE="%s" ONCLICK="history.go(-1)"></FORM>\n</body>\n</html>\n' % (sabnzbd.__version__, T('ERROR:'), T('Incorrect parameter'), unicoder(msg), T('Back')))

def badParameterResponse ( msg , ajax = None ) : if ajax : return sabnzbd . api . report ( 'json' , error = msg ) else : return ( '\n<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0//EN">\n<html>\n<head>\n           <title>SABnzbd %s - %s</title>\n</head>\n<body>\n<h3>%s</h3>\n%s\n<br><br>\n<FORM><INPUT TYPE="BUTTON" VALUE="%s" ONCLICK="history.go(-1)"></FORM>\n</body>\n</html>\n' % ( sabnzbd . __version__ , T ( 'ERROR:' ) , T ( 'Incorrect parameter' ) , unicoder ( msg ) , T ( 'Back' ) ) )
return a html page with error message and a back button .