Skip to content

Instantly share code, notes, and snippets.

@veer66
Created November 10, 2013 17:04
Show Gist options
  • Save veer66/7400871 to your computer and use it in GitHub Desktop.
Save veer66/7400871 to your computer and use it in GitHub Desktop.
if (!services.paramKeys.all(function(k) {
return params[k] !== undefined;
})) {
res.writeHead(500, {"Content-Type": "text/plain"});
res.end("Invalid parameter");
return;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment